|
Posted by Sanders Kaufman on 12/22/07 00:03
"Michael Fesser" <netizen@gmx.de> wrote in message
news:faenm390hol9gjafv6e2g07mfq1vvrvnqd@4ax.com...
> .oO(Bob Bedford)
>
>>The problem is that I've to show html code and images on the same
>>document.
>>I tried this:
>>header('Content-type: text/plain');
>> header('Content-type: image/png',false);
>
> Of course this cannot be done. One URL, one document.
> You need a second script to fetch the image.
There are ways around this, but they can be damned tough.
The simplest is to base-64 encode the binary image, and put that data
inline.
That way, instead of linking to the binary data, it's right there in the
HTML code.
That has the added benefit of giving you an oportunity to manipulate the
image (stretch, watermark, etc) for each session.
[Back to original message]
|