Seems like the finfo extension is not installed. Check the ouput of phpinfo(). Maybe the old mime_content_type() function is available? Otherwise you can use the MimeType class (which is essentially a wrapper for the extensions mentioned above, but also comes with a native php replacement for magic and glob lookup) from media plugin:
http://github.com/davidpersson/media/tree/master http://github.com/davidpersson/media/wikis/faq On 20 Dez., 00:07, Donkeybob <[email protected]> wrote: > have you tried getimagesize() > > http://us3.php.net/getimagesize > > On Dec 19, 4:30 pm, djXternal <[email protected]> wrote: > > > I am trying to determine a file's MIME type that's on the server. I > > have tried using the PHP finfo function, but came back with a cannot > > find function error.... Is there any other way of determining file > > type? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
