.htaccess enable php fileinfo extension

Sanganabasu picture Sanganabasu · Dec 27, 2013 · Viewed 43.7k times · Source

I've used shared host for hosting my application and the version is php5.3.27. I'm getting an error like

 Call to undefined function finfo_open() 

So I've gone through some articles where I suggested by enabling fileinfo extension in .htaccess. For the first time I'm getting this error. Please help me to get the solution. The work would be more appreciated.

Answer

Jon Lin picture Jon Lin · Dec 27, 2013

See this answer:

In your php.ini file, make sure you have something like this in it:

extension=fileinfo.so

or if you're on windows, php_fileinfo.dll.