如何禁用通知,并在.htaccess文件在PHP的警告?并在、通知、文件、htaccess

由网友(你若要走我定不留)分享简介:我只想只能打开PHP错误和禁用的PHP文件中的所有通知和警告。I just want to only turn on php errors and disable all notice and warnings in php files.在此先感谢。推荐答案可能不是最好的事情,你至少需要检查你的PHP错误的事情...

我只想只能打开PHP错误和禁用的PHP文件中的所有通知和警告。

I just want to only turn on php errors and disable all notice and warnings in php files.

在此先感谢。

推荐答案

可能不是最好的事情,你至少需要检查你的PHP错误的事情出错日志;)

Probably not the best thing to do you need to at least check out your php error log for things going wrong ;)

# PHP error handling for development servers
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_flag log_errors on
php_flag ignore_repeated_errors off
php_flag ignore_repeated_source off
php_flag report_memleaks on
php_flag track_errors on
php_value docref_root 0
php_value docref_ext 0
php_value error_log /home/path/public_html/domain/PHP_errors.log
php_value error_reporting -1
php_value log_errors_max_len 0
阅读全文

相关推荐

最新文章