[請益] 隱藏CI顯示的錯誤/警告

看板PHP作者 (smile_ting)時間13年前 (2012/11/03 22:29), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
各位前輩好,我的網頁是在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
文章代碼(AID): #1GbIeoo8 (PHP)
文章代碼(AID): #1GbIeoo8 (PHP)