解决Deprecated: preg_replace(): The /e modifier is deprecated的三个方法
因为php版本过高,preg_replace已经被弃用.可以对php进行降低版本来解决.
也可以把preg_replace替换为reg_replace_callback,具体方法网上搜索Deprecated: preg_replace(): The /e modifier is deprecated 相关的提示解决
或直接隐藏Deprecated级别的错误提示.方法是修改服务器上,php目录中php.ini
把原来的 error_reporting=(注意前面没有引号)
这行,整体替换为
<span style="color: rgb(55, 55, 55); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 24.375px;">error_reporting =E_ALL | E_STRICT</span>
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
- 上一篇: Linux下获取文件大小方法汇总
- 下一篇: Linux 获取文件大小--C函数