设置在.htaccess display

编程入门 行业动态 更新时间:2024-10-27 11:28:06
本文介绍了设置在.htaccess display_error PHP配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图禁止从的.htaccess 的display_errors,但如果我只是粘贴到的.htaccess 文件中,整个站点崩溃了:

的php_flag display_errors设置关闭 的php_flag log_errors上

解决方案

如果PHP编译为Apache模块,你有权限更改这些这只作品。

如果你正在使用PHP> = 5.3,有更好的解决办法:在你的文档根目录下创建 .user.ini 文件,并使用正常的INI语法来定制你的配置。

I'm trying to disable display_errors from .htaccess, but if I just paste this into the .htaccess file, the entire site crashes:

php_flag display_errors off php_flag log_errors on

解决方案

This only works if php is compiled as apache module and you have privileges to change those.

If you are using php >= 5.3, there is better solution: create .user.ini file in your document root and use normal ini syntax to customize your config.

更多推荐

设置在.htaccess display

本文发布于:2023-10-31 17:16:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1546752.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:htaccess   display

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!