久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php如何解決服務(wù)器出現(xiàn)500錯誤

      php如何解決服務(wù)器出現(xiàn)500錯誤

      PHP 新手在初期搭建完開發(fā)環(huán)境后,開發(fā)時出現(xiàn)語法錯誤時,服務(wù)器返回500 ( 服務(wù)器內(nèi)部錯誤),而不是返回錯誤提示。 這時候需要對開發(fā)環(huán)境做一些配置,幫助你快速查找問題原因,定位問題,解決問題。

      找到 php的配置文件 /etc/php.ini

      配置參數(shù)值:

      display_errors = On  error_reporting = E_ALL | E_STRICT

      重啟apache 服務(wù)

      service  httpd  restart

      這個時候 瀏覽器已經(jīng)可以輸出錯誤信息了。

      需要再配置下 apache /etc/httpd/conf/httpd.conf

      在 apache的配置文件最后添加 兩行:

      php_flag display_errors on php_value error_reporting 2039

      重啟apache。

      對php.ini 中參數(shù)的設(shè)置 也可用在php代碼中完成。

      調(diào)用:調(diào)用ini_set()函數(shù)

      //開啟php.ini中的display_errors指令 ini_set('display_errors',1); //通過error_reporting()函數(shù)設(shè)置,輸出所有級別的錯誤報告 error_reporting(E_ALL);

      相關(guān)參考:php中文網(wǎng)

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