Setting display_error PHP configuration in .htaccess

风格不统一 提交于 2020-01-06 08:17:29

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/13655027/setting-display-error-php-configuration-in-htaccess

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!