Reputation: 1029
I had an "older" server, now I upgraded to newest. I have something like this: img src="s.php", the s.php creates a GIF output. When I directly call this script, I only see the content of the image, instead of the actual picture. I saved the picture, it has no bug.
Upvotes: 0
Views: 63
Reputation: 2009
Use
ob_start();
header('Content-Type: image/gif');
echo //your image
ob_end_flush();
Upvotes: 0