PHP 致命错误:调用未定义的函数 utf8_decode() [英] PHP Fatal error: Call to undefined function utf8_decode()

查看:52
本文介绍了PHP 致命错误:调用未定义的函数 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆