久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php怎么屏蔽程序錯(cuò)誤

      php屏蔽程序錯(cuò)誤的方法:首先打開php配置文件php.ini;然后在配置文件中找到【display_errors=on】選項(xiàng);最后將該選項(xiàng)修改為【display_errors=off】即可。

      php怎么屏蔽程序錯(cuò)誤

      本文操作環(huán)境:windows10系統(tǒng)、php 7.3、thinkpad t480電腦。

      首先我們打開php配置文件php.ini,找到如下選項(xiàng)

      display_errors = On

      php默認(rèn)是打開錯(cuò)誤信息顯示的,我們把它改為:

      display_errors = Off

      關(guān)閉錯(cuò)誤顯示后,php函數(shù)執(zhí)行錯(cuò)誤的信息將不會(huì)再顯示給用戶,這樣能在一定程度上防止攻擊者從錯(cuò)誤信息得知腳本的物理位置,以及一些其它有用的信息,起碼給攻擊者的黑箱檢測(cè)造成一定的障礙。這些錯(cuò)誤信息可能對(duì)我們自己有用,可以讓它寫到指定文件中去,那么修改以下:

      log_errors = Off

      改為:

      log_errors = On

      以及指定文件,找到下面這行:

      ;error_log = filename

      去掉前面的;注釋,把filename改為指定文件,如/usr/local/apache/logs/php_error.log

      error_log = /usr/local/apache/logs/php_error.log

      這樣所有的錯(cuò)誤都會(huì)寫到php_error.log文件里。

      免費(fèi)學(xué)習(xí)視頻分享:編程入門

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)