You are here: Re: Including a GD-generated Image in an HTML Page? « PHP Language « IT news, forums, messages
Re: Including a GD-generated Image in an HTML Page?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация