文件编码UTF-8 BOM保存
[quote=引用 5 楼 zy205817 的回复:] 文件编码UTF-8 BOM保存
那就是你的问题了<?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;
<?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;
1、header("Content-type: image/jpeg"); 2、去掉 BOM 头
21,886
社区成员
140,364
社区内容
加载中
试试用AI创作助手写篇文章吧