PHP 致命错误:调用未定义的函数 utf8_decode() [英] PHP Fatal error: Call to undefined function utf8_decode()
问题描述
我在 Internet 上搜索过有关此错误的信息.有人告诉我,我的电脑缺少 php 的 lib xml.但我不知道如何在 Ubuntu 12.04 TLS 上安装它.
I've searched on the Internet about this error. Somebody told me that my computer is missing lib xml for php. But I don't know how to install it on Ubuntu 12.04 TLS.
推荐答案
PHP 致命错误:调用未定义的函数 uft8_decode()
函数名是utf8_decode()
,不是uFT8_decode()代码>.
var_dump(function_exists('utf8_decode'));
应该告诉你它是否可用.如果返回 bool(false)
,则 PHP 安装中可能缺少 php-xml
包.确保它已安装.如果不是,请让您的托管服务提供商更新/安装它.
var_dump(function_exists('utf8_decode'));
should tell you if it's available. If this returns bool(false)
, then php-xml
package is probably missing in your PHP installation. Make sure it is installed. If it isn't, ask your hosting provider to update / install it.
这篇关于PHP 致命错误:调用未定义的函数 utf8_decode()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!