I have a PHP program that I want to return a GIF image. I want the program to work from a <IMG> tag. Basically like this:
<IMG SRC="test.php?value=image1">
The PHP program will check the value and return an image based on it. In this example, it might return image1.gif. Can I just open a GIF image and "echo" it's data? Can I re-direct to the GIF?
What's the best way to do this?
Thanks,
Joel