Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I'm trying to disable display_errors from .htaccess, but if I just paste this into the .htaccess file, the entire site crashes:
.htaccess
php_flag display_errors off php_flag log_errors on
这仅在 php 被编译为 apache 模块并且您有权更改它们时才有效。
如果您使用的是 php >= 5.3,则有更好的解决方案:.user.ini在文档根目录中创建文件并使用普通的 ini 语法来自定义您的配置。
.user.ini