我正在在线测试一个网站。
现在,错误没有显示(但我知道它们存在)。
我只能访问 .htaccess
文件。
如何使用我的 .htaccess
文件显示所有错误?
我将这些行添加到我的 .htaccess
文件中:
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
页面现在显示:
Internal server error
最佳答案
.htaccess:
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag log_errors on
php_value error_log /home/path/public_html/domain/PHP_errors.log
关于php - 仅通过 htaccess 在 PHP 中启用错误显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6127980/