I came up with a rather weird workaround that I found in the PHP Manual, of course:
/*-----------------------------------------------------------------------------------------------------------------------
Note: Certain variations of PHP may not have this function installed within php.ini if this is
the case this function will kick in instead
------------------------------------------------------------------------------------------------------------------------*/
if (!function_exists('mime_content_type')) {
function mime_content_type($file) {
return exec('file -bi ' . escapeshellarg($file));
}
}
That seems to work just fine, but I would like to know how many more "core" functions in PHP are not really there when they say there are even in the correct versions.
Phil