使用织梦内容管理系统.进入后台提示[pre]PHP Deprecated: Function ereg_replace() is deprecated in X:\织梦\dede\config.php on line 2[/pre]
解决办法:
出现这个原因是因为您使用的PHP版本已经放弃了ereg_replace函数,将只更改为preg_replace就可以了
具体方法,打开config.php将第二行的:
define('DEDEADMIN', ereg_replace("[/\\]{1,}", '/', dirname(__FILE__) ) );
替换为
define('DEDEADMIN',preg_replace("/[\/\\\\]{1,}/",'/',dirname(__FILE__) ) );
保存.OK一切正常了
解决办法:
出现这个原因是因为您使用的PHP版本已经放弃了ereg_replace函数,将只更改为preg_replace就可以了
具体方法,打开config.php将第二行的:
define('DEDEADMIN', ereg_replace("[/\\]{1,}", '/', dirname(__FILE__) ) );
替换为
define('DEDEADMIN',preg_replace("/[\/\\\\]{1,}/",'/',dirname(__FILE__) ) );
保存.OK一切正常了
因为5.7无法正确保存文章缩略图所以,改用5.6版本
通过修改编辑器 默认表单 可以默认选中 缩略图噢文件 是,dede_image.php
<td align="right" nowrap='1' style='border-top:1px dashed #333;padding-top:3px'>选 项:</td>
<td nowrap='1' style='border-top:1px dashed #333;padding-top:3px'>
<input type="checkbox" name="dd" value="yes" checked='1'/>生成缩略图
缩略图宽度
<input name="w" type="text" value="<?php echo $cfg_ddimg_width?>" size="3" />
缩略图高度
<input name="h" type="text" value="<?php echo $cfg_ddimg_height?>" size="3" />
<br />
<input type='checkbox' name='alttitle' value='1' />在图片下一行加上ALT描述作为说明文字