Bob Eldred wrote:
I'm wanting to serve images outside the docroot of apache, so that the
images can't be so easily hijacked.  However, I appear to be running into a
problem with (I think) the headers not being sent properly.  IE (v6) will
only save the images as BMPs, not as JPGs, even though they are JPG images.

Given that your purpose is for the images to be difficult to hijack, doesn't this serve your interest? :)


The problem with IE is that it's developed by Microsoft. The same way Microsoft didn't recognize magic for detecting the file type (and used extensions instead), it now doesn't use MIME types (and uses extensions instead). Never tried it, but I would assume that serving an image along with the proper headers and with a .txt extension to IE will result in saving it as text.

So basically it's an IE thing. What you can do, if you really need to, is serve the images as <img src="/showpicture/xxxxxx.jpg"> and parse the xxxxxx out of it in showpicture.php.

HTH

Bogdan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to