问题描述
在我的 phpinfo 中,它说 fileinfo
已启用.但是我仍然收到错误Call to undefined function finfo_open()
.我错过了什么?请查看我的配置命令的图像.
In my phpinfo, it say's that the fileinfo
is enabled. But Im still getting the error Call to undefined function finfo_open()
. What am I missing? Please see the image of my configuration command.
我没有直接访问 php.ini
的权限,因为我使用的是共享主机.我可以要求他们为我更新它,但我不确定除了 fileinfo
之外还需要其他什么来启用.
EDIT :I don't have a direct access to php.ini
because im using a shared hosting. I can request them to update it for me but im not exactly sure what other else are needed to enable other than fileinfo
.
推荐答案
在你的 php.ini
中应该有类似于 ;extension=fileinfo.so
或 ;extension=php_fileinfo.dll.您需要删除 ;
以启用这些.看起来它正在尝试从 .dll 调用一个函数,但找不到它.
In your php.ini
there should be something similar to ;extension=fileinfo.so
or ;extension=php_fileinfo.dll
. You will need to remove the ;
to enable these. It looks like it's trying to call a function from the .dll but cannot find it.
这篇关于调用未定义的函数 finfo_open()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!