- file_get_contents: documentation ( source)
<?php
echo "1";
$file = "http://tec.thediamondpages.com/projects/D&D/PlayerTracker/CharacterSheet.html";
$file_info = new finfo(FILEINFO_MIME);
$mime_type = $file_info->buffer(file_get_contents($file));
echo $mime_type;
?>