Hi there... I'm dynamically including images for an adserver kinda script.
eg. <img src="advert.php?category=books">
and the php script displays finds the filename of next image in the books category, generates appropriate headers, and includes the file (which is stored locally).
eg. Header("Content-Type: image/jpeg");
include("whateverthefilenameis.jpeg");
Now. This has generally worked pretty well. However occasionally I get little glitches with certain images which refuse to display (these same ones are actually viewable through the browser, just not through my script). I have had this problem with jpegs and gifs.
Would anyone know what the problem is? Perhaps there is a better way to dynamically display the image?
Thanks... Regards - Nevrar