PHP 图片
就以下载如下图片为例吧 1、header("Content-type: image/jpeg");
2、去掉 BOM 头
1、header("Content-type: image/jpeg");
2、去掉 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;文件编码UTF-8 BOM保存
文件编码UTF-8 BOM保存
试过了还是不可以:(
文件编码UTF-8 BOM保存
试过了还是不可以:(
在ob_start()下面加一句ob_clean()就好了
文件编码UTF-8 BOM保存
在ob_start()下面加一句ob_clean()就好了
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号