我設置我的htaccess,並試圖從display_errors切換到log_errors ..我得到了log_errors和error_log工作,所以現在我得到錯誤登錄到phpLogfile.txt。但我現在想擺脫迭代消息。這就是爲什麼我試圖啓用ignore_repeated_errors和ignore_repeated_source。Php htaccess忽略重新來源無法啓用
我就把這行代碼在我的腳本:
require_once('stupid.php')
當然,這給出了一個錯誤,但會記錄錯誤一遍又一遍。
我嘗試了幾種方案,如:
php_flag ignore_repeated_source 1
php_flag ignore_repeated_source on
php_flag ignore_repeated_source ON
php_flag ignore_repeated_source On
由於php.net說,這種設置是多變的PHP_INI_ALL必須有我的網站上的錯誤。 我錯過了什麼嗎?
php_value error_reporting 2047
php_value display_errors 1
php_value log_errors 1
php_value error_log C:\xampp\htdocs\html\zillion_strato\phpLogfile\phpLogfile.txt
# disable repeated error logging
php_value ignore_repeated_errors on
php_value ignore_repeated_source on
# save last error msg in variable
php_flag track_errors on
#protect/prevent looking up the path
<Files C:\xampp\htdocs\html\zillion_strato\phpLogfile\phpLogfile.txt>
Order allow,deny
Deny from all
Satisfy All
</Files>
您能否與我們分享非工作的確切種類? –