访问一个php页面竟报这个错误

WBOY
Release: 2016-06-23 14:06:06
Original
847 people have browsed it

Fatal error:Cannot to undefined function mb_internal_encoding()

我的环境是:

VirtualBox4.2.6 + Linux(RedHat) + httpd-2.4.4  + mysql-5.1.6 + php-5.4.13


回复讨论(解决方案)

mbstring扩展没开启

mbstring扩展没开启
该怎样开启呢?
网上搜了下,照着做,还是不行

php.ini里,
;mbstring.internal_encoding = EUC-JP

删掉前面的分号 ; 重启apache。 

http://php.net/manual/en/mbstring.configuration.php#ini.mbstring.internal-encoding

修改php.ini,添加一句extension=mbstring.so,然后重启apache

如果没有mbstring.so文件的话,去网上搜linux开启php_mbstring扩展,照着安装。

php.ini里,
;mbstring.internal_encoding = EUC-JP

删掉前面的分号 ; 重启apache。 

http://php.net/manual/en/mbstring.configuration.php#ini.mbstring.internal-encoding


修改php.ini,添加一句extension=mbstring.so,然后重启apache

如果没有mbstring.so文件的话,去网上搜linux开启php_mbstring扩展,照着安装。
照着做了,还是不行

在php.ini中找到extension=php_mbstring.dll,将前面分号去掉,然后保存,最后重启apache!希望能帮到你哦!

在php.ini中找到extension=php_mbstring.dll,将前面分号去掉,然后保存,最后重启apache!希望能帮到你哦!
我的环境是linux操作系统,.dll是windows操作系统的文件类型

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!