i have been scouring the web all day and am unable to find a reasonable solution to this problem.
i am trying to help a client hobble back together a site that was moved from another host to godaddy shared hosting.
the site is built using CakePHP and one line uses mime_content_type, which is not available on this server. neither is the FILE command and neither is fileinfo.
i tried the upgrade.php replacement, but it fails presumably because it can't find mime_magic.
the PEAR solution fails due to FILE not being available.
is there any solution to this?
the only goal here is to find out whether or not a file is a PDF or not, not based on the extension.
PHP Version 5.2.17
thanks so much.