PHP Pictures
Let's take this as an example.
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;
Reply to discussion (solution)
1, header ("Content-type:image/jpeg");
2, remove the BOM head
1, header ("Content-type:image/jpeg");
2, remove the BOM head
is still not able to display normally: (
That's your problem.
!--? 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;
that's your problem.
!--? 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;
Http://images.wine9.com/images/201110/source_img/3116_P_1319076528562.jpg To access this image is OK
file encoding UTF-8 BOM save
file encoding UTF-8 BOM save
Tried or not: (
File encoding UTF-8 BOM save
Tried or not: (
Add a Ob_clean () under Ob_start ().
file encoding UTF-8 BOM Save
Add a sentence under Ob_start () Ob_clean () just fine