<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

Dedecms提示ereg_replace() is deprecated错误

时间:2020-12-16

织梦Dedecms提示 ereg_replace() is deprecated错误 。

错误提示
Deprecated: Function ereg_replace() is deprecated in
问题分析
出现这种问题一般是高版本的php才会有的,因为高版本的php中己经把ereg_replace函数给去了,如果要使用我们可以使用preg_replace函数来操作
解决方法:
如果有服务器管理权限
 
修改php.ini中下面代码
 代码如下
;extension=php_mbstring.dll
改为
extension=php_mbstring.dll
 
;mbstring.func_overload = 0
修改为:
mbstring.func_overload = 7
三、把PHP降为5.2
 
如果没有权限我们直接使用文件,下面有dede cms为实例
找到织梦dedecms 后台目录下 config.php
 代码如下
1.
define(‘DEDEADMIN’, ereg_replace(“[/\]{1,}”, ‘/’, dirname(__FILE__) ) );
//改为
define(‘DEDEADMIN’, preg_replace(“/[/\\]{1,}/”, ‘/’, dirname(__FILE__) ) );
2.
//define(‘DEDEADMIN’, preg_replace(“[/\]{1,}”, ‘/’, dirname(__FILE__) ) );
改为
define(‘DEDEADMIN’,strtr(dirname(__FILE__),’\/’,'//’));
0
首页
案例
关于
联系