I've got a weird little problem with a program that I wrote
in PHP. It grabs an image via the filesystem, rather than
through http, in order to provide some security regarding
who has the priviliges to look at the image. It works good.
I need to provide a header to specify the image type.
Otherwise, some browsers (like some versions of Netscape)
can't tell what kind of image that it is. I never really
thought about it, but I guess that NS doesn't look at the
headers of an image, but just looks at the file suffix.
Which sucks. If I want to call a GIF "image.jpg", I should
be able to.
Anyhow, I guess I could force the browser to flush the
headers or something...I dunno. But sending a header in the
middle of a page of HTML ain't so cool. I guess I need to
go read how it's
supposed to work in http.
The more that I learn, the less that I know. At least,
seems that way.