Returning image.... (header format)

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I want to read an image an return it to the user - the point is, that
it can be any graphic image, so I need to set it properly.

AFAIK there are imaga/jpeg, image/png - then? image/gif and image/
svg ?
    header("Content-type: image/$ext");

As of now, testing with a gif, it works... changing it to jpeg and it
still works with gif :-)

Comments? Thoughts?

Site Timeline