RE: [PHP] creating Image to display without saving it.
| From: | NCI/IMS) | Date: | Fri, 24 May 2002 13:11:11 +0000 |
| Subject: | RE: [PHP] creating Image to display without saving it. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-99081@lists.php.net to get a copy of this message | ||
I use the header when the Image is the only thing in the file. To use it in
a file with other stuff do I just put it before the ImageCreate?
I'll have to try the galleryimg tag. Thanks!!!
-Natalie
-----Original Message-----
From: Miguel Cruz [mailto:mnc@stoic.net]
Sent: Thursday, May 23, 2002 3:00 PM
To: Leotta, Natalie (NCI/IMS)
Cc: php-general@lists.php.net
Subject: Re: [PHP] creating Image to display without saving it.
On Thu, 23 May 2002, Leotta, Natalie (NCI/IMS) wrote:
> I've got a page where I create an Image that I want to put into one of
> my HTML table cells. I've been doing this by saving the file,
> chmoding it, and then opening it using image source in the HTML.
>
> The problem is that when you do that, the new version of IE has that
> stupid pop-up window when you mouseover on an image. When I create an
> Image in a different file, and have the image source tag linking to
> that filename, for some reason there's no pop-up window. Is there any
> way for me to create the Image in the same file and include it in the
> page without saving it and opening it? We just did usability testing
> and everyone hated the little popup that Microsoft gave us.
You can output the image direct from PHP to the browser. Just send the
proper header ('Content-Type: image/png' or whatever) and output the image
data.
As for that hateful little popup thing, I think you can get rid of that by
adding the attriute GALLERYIMG="NO" to your IMG tag.
miguel