Call to undefined function mb_detect_encoding()错误的处理方法

[转http://blog.csdn.net/Pompeii/article/details/19950811]

 

call to undefined function mb_convert_encoding in。。。

在网上找了一些解决方法,基本上都是windows下的php解决方法。

在php.ini中开启mbstring函数库:去掉extension=php_mbstring.dll前面的分号;

linux解决方法

首先安装 php-mbstring库文件:

yum install php-mbstring

之后,修改/etc/php.ini文件,在里面加一句

extension=mbstring.so

保存后重启httpd服务。

service httpd restart


有可能要重新编译安装php:
# ./configure --enable-mbstring

posted @ 2017-06-05 14:17  ddxg  阅读(1456)  评论(0编辑  收藏  举报