thinkphp中msubstr函数有关问题

WBOY
Release: 2016-06-13 11:50:07
Original
971 people have browsed it

thinkphp中msubstr函数问题
在文件common中定义了common.php文件,里面定义了
function msubstr() {

}
并且在本地测试完全通过,但放到新浪sae上时访问时提示错误:
Call to undefined function msubstr() ......
错误位置
FILE: /data1/www/**********/ThinkPHP/Extend/Engine/Cluster/Lib/Core/Think.class.php  LINE: 284

好无奈呀。。。
------解决方案--------------------
去掉php配置文件里面下面这行的分号
extension=php_mbstring.dll
确保mbstring模块被加载上了
------解决方案--------------------
我和楼主遇到了一样的情况,开始放在项目的common文件夹中的common也是这样没用,后面我放在thinkPHP框架下的common就可以了。 具体原因没有深究。。。
------解决方案--------------------
换个方法名称试一下
------解决方案--------------------
可以考虑清楚一下THINKPHP的缓存文件。

Related labels:
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!