Is it possible to use multiple header types in one document? For example:
header(\"Content-type: image/jpeg\");
header(\'Content-Type: text/html; charset=utf
I do find it somewhat bizarre when people question why someone would want to do what they are asking in the initial question.
Having spent a couple of hours working on alternative solutions, which didn't work, for a similar requirement to the OP, this is precisely what I needed.
The usage I require is for displaying multiple images that are read from above the root and therefore not normally available via an IMG tag, so the solution that Erik has posted does the job beautifully and elegantly.
You are able, as usual, to pass parameters to this wrapper file, in order that it finds the relevant image, creates a thumbnail version or whatever.
In summary, excellent answer and thank you.