0
我從命令行運行PHP腳本。是否有可能在錯誤信息中禁用HTML標籤?關閉PHP錯誤中的html標記
例如,當發生的,而不是輸出等的錯誤:
<br />
<b>Fatal error</b>: Uncaught exception 'Exception'
誤差輸出這樣的:
Fatal error: Uncaught exception 'Exception'
我從命令行運行PHP腳本。是否有可能在錯誤信息中禁用HTML標籤?關閉PHP錯誤中的html標記
例如,當發生的,而不是輸出等的錯誤:
<br />
<b>Fatal error</b>: Uncaught exception 'Exception'
誤差輸出這樣的:
Fatal error: Uncaught exception 'Exception'
添加此行向腳本的頂部:
ini_set('html_errors', false);
我已經使用這個,它對我來說工作得很好。 ini_set('html_errors',false); –