Wordpress插件 - 调用未定义的函数finfo_open() [英] Wordpress plugin - call to undefined function finfo_open()
问题描述
我想使用 CSV Me 外挂程式,让我们的客户上传csv文件到数据库。当我尝试上传一个文件作为测试,我得到以下错误信息:
I am trying to use the CSV Me plugin in order to let our client upload a csv file to the database. When i try to upload a file as a test i get the following error message:
Fatal error: Call to undefined function finfo_open() in /home/diamondh/public_html/wp-content/plugins/csv-me/csv_me_index.php on line 110
我查看了有问题的文件,发现110行如下:
I took a look at the file in question and found line 110 looking like:
$finfo = finfo_open(FILEINFO_MIME_TYPE); // return mime type ala mimetype extension
至于我知道 finfo_open )
是php的一部分,为什么它是未定义的?
As far as i know finfo_open()
is a built in part of php so why would it be undefined?
奖金:任何人都知道任何更好的解决方案, csv into the wordpress database?
BONUS: Anyone know any better solutions for getting a csv into the wordpress database?
推荐答案
finfo_open
仅适用于php> = 5.3.0
http:// www.php.net/manual/en/function.finfo-open.php
finfo_open
is only available for php >= 5.3.0
http://www.php.net/manual/en/function.finfo-open.php
您可能要仔细检查您的服务器是否为最新的 php_info()
You may want to double check your server is up to date with php_info()
这篇关于Wordpress插件 - 调用未定义的函数finfo_open()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!