5
我需要不顯示但記錄PHP錯誤。我使用PHP 5.4我當前的代碼在我的php.ini記錄錯誤是:PHP 5.4 500關閉display_errors的內部服務器錯誤
log_errors = 1
error_log = "/path-to-file/error_log.txt"
其中一期工程但我得到一個500內部服務器錯誤試圖把錯誤顯示關使用display_errors
。我試着使用以下,所有返回500錯誤。
display_errors = 0
display_errors = "0"
display_errors = false
display_errors = "false"
display_errors = Off
display_errors = "Off"
根據PHP文檔,從PHP 5.4起,它是一個字符串。我想設置display_errors
來將錯誤顯示關閉?
什麼服務器?什麼方法執行PHP? FastCGI的? – Brad
我在1&1託管的Linux上使用Apache。我不確定你的意思是「什麼方法執行PHP?」 @Brad –
那麼在您的生產代碼中可能會出現致命錯誤?那可能怎麼樣? – zerkms