的.htaccess开启PHP FileInfo的延伸htaccess、PHP、FileInfo

2023-09-02 00:57:11 作者:溺死于海

我已经使用的共享主机托管我的应用程序和版本的 php5.3.27 。我发现了一个错误,如

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() 

所以,我通过一些文章,我建议通过使FileInfo的扩展在.htaccess中消失了。这是第一次我得到这个错误。请帮我拿到了解决方案。这项工作将更加AP preciated。

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.

推荐答案

请参阅这个答案:

在php.ini文件,确保您有这样的事情在里面:

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

extension=fileinfo.so

或者如果你使用的是Windows, php_fileinfo.dll