Jump to content

Finfo Errors


MDCode

Recommended Posts

Hello. According to the PHP docs for this fileinfo function(finfo_open()) at php.net, the fileinfo extensions should be automatically included in PHP 5.3.0 and newer.

 

Stevie is currently running 5.3.8 and is returning undefined function errors on every finfo_* function. I was just wondering if you have manually disabled it or is something wrong with it?

Link to comment
Share on other sites

I was trying to get the mime type of files for an open source file manager I've been making. mime_content_type() is the only other way I've found that will work with files that are already on the server, but it has been deprecated for the fileinfo() functions.

 

If it has to be disabled, that's fine. I can just work on it in xampp.

Link to comment
Share on other sites

Thank you for the suggestion. However, to use a cURL request on every file; especially for just the mime type, uses up a lot more resources than I would like to. I will just continue to test this project on xampp. Sorry for wasting your time.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...