[請益] 隱藏CI顯示的錯誤/警告
各位前輩好,我的網頁是在CI這個Framwork 上面開發的
因為這些警告跟錯誤 我只希望保留在log檔案裡面
並不需要display到前端網頁給客戶看。
想請教一下該如何設定呢?
我已經在php.ini
修改了
; Production Value: Off
; http://php.net/display-errors
display_errors = Off
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting
error_reporting = E_ERROR
; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
; http://php.net/error-reporting
error_reporting = E_ERROR
在CI config.php
也江 $config['log_threshold'] = 0;
但是我的網頁還是會顯示出類似如下的bug
A PHP Error was encountered
Severity: 8192
Message: Function eregi_replace() is deprecated
A PHP Error was encountered
Severity: 8192
Message: Function set_magic_quotes_runtime() is deprecated
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 119.77.136.156
推
11/04 13:49, , 1F
11/04 13:49, 1F
PHP 近期熱門文章
PTT數位生活區 即時熱門文章