脚本宝典收集整理的这篇文章主要介绍了PHP缺少mb_strpos函数?,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
PHP Fatal error: Call to undefined function mb_strpos() in /my/file.PHP
这很奇怪,因为mb_strpos()
是在PHP 4中引入的,而我正在运行PHP 5.3.3
$PHP -v PHP 5.3.3 (cli) (built: Feb 22 2012 19:38:14) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0,Copyright (c) 1998-2010 Zend TechnoLOGies
任何其他人遇到这样的事情并知道如何解决它?我搜查了,我无法弄明白.
PS.我正在运行centOS 5.
yum install PHP-mbstring.x86_64 # for redhat derivative systems
作为root用户
要么
apt-get install PHP-mbstring.x86_64 # for Debian derivative systems
在Windows上你必须编辑PHP.ini才能使用扩展dll库
以上是脚本宝典为你收集整理的PHP缺少mb_strpos函数?全部内容,希望文章能够帮你解决PHP缺少mb_strpos函数?所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。