就以下载如下图片为例吧
<?php
  ob_start();
  readfile("http://images.wine9.com/goodsGallery/91/9187/60_90.jpg");
  $img = ob_get_contents();
  ob_end_clean();
  header("Content-type: image/jpg");
  echo $img;PHP图片

解决方案 »

  1.   

    1、header("Content-type: image/jpeg");
    2、去掉 BOM 头
      

  2.   

    那就是你的问题了<?php
      ob_start();
      readfile("http://images.wine9.com/goodsGallery/91/9187/60_90.jpg");
      $img = ob_get_contents();
      ob_end_clean();
      header("Content-type: image/jpeg");
      echo $img;
      

  3.   

    http://images.wine9.com/images/201110/source_img/3116_P_1319076528562.jpg若是访问这张图片就是可以的了
      

  4.   

    试过了还是不可以:(
    在ob_start()下面加一句ob_clean()就好了
      

  5.   

    在ob_start()下面加一句ob_clean()就好了