|
Posted by Michael Fesser on 01/05/08 02:41
..oO(ashore)
>Guys, I gave an OK image being generated and i need to include in a
>page/script, and I wonder what's a good way to do that. (The data
>generating the image changes dynamically, so it makes no sense to save
>the image.)
>
>I'd rather not save the image as a temporary file (which wd then be
>called via html's <img src='foo'>). Right now I see my doing it via
>an Iframe, with the target being the image generator script. But
>there's gotta be better ways, so, ... ?
Call the image generator script from withing your 'img' element:
<img src="theScript.php" alt="...">
The script just has to deliver the image data with a correct
Content-Type header.
Micha
Navigation:
[Reply to this message]
|