久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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圖像因存在錯誤而無法顯示怎么辦

      php圖像因存在錯誤而無法顯示是因為存在一個notice錯誤,其解決辦法:1、關(guān)閉wamp的notice錯誤提示;2、在前面定義下【$file=”;】。

      php圖像因存在錯誤而無法顯示怎么辦

      推薦:《PHP視頻教程》

      php圖像因存在錯誤而無法顯示

      (上圖為火狐瀏覽器顯示,google瀏覽器顯示一個叉叉)

      <?php header("Content-type:image/jpeg");   $resource = fopen('001.png','r'); while($ff = fread($resource, 1024)){     $file .= $ff; }; echo $file;

      原因分析:因為存在一個notice錯誤。

      $file .= $ff;

      原型為:

      $file = $file.$ff;

      中間的$file沒有定義,會報錯

      解決方法:

      方案一:關(guān)閉wamp的notice錯誤提示。

      error_reporting(E_ALL & ~E_NOTICE);

      方案二:在前面定義下$file=”;

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