I'm on 5.3.1 and after reading the docs, I see that fileinfo is included and that pecl is no longer required. I an however getting:
finfo_file(): File or path not found
I'm not sure what it's looking for. I've enabled the extension in the ini file and attempted to run the example from the PHP site:
$finfo = finfo_open(FILEINFO_MIME_TYPE); // return mime type ala mimetype extension
foreach (glob("*") as $filename) {
echo finfo_file($finfo, $filename) . "\n";
}
finfo_close($finfo);
Can someone tell me what file I need?