Re: [PHP] Drawing Images Without Writing To a File

[email protected] (Rene Veerman)
Newsgroups php.general
Message-ID <[email protected]>
sure..

have a seperate php script output the image you want (after doing a
header() call to set the mime type to an image; google "php header
image"), and call that on the relevant page via <img
src='http://yourserver.com/project/imageScript.php?p1=a&p2=b">..

but ehm, image creation is bound to be a resource-intensive job..
you may want to cache the images.

On Thu, Mar 11, 2010 at 4:27 PM, Floyd Resler <[email protected]> wrote:
> I want to draw tabs in a tab bar without having to actually write the images to a file.  Is it possible to generate the image and send the data back and make the browser think it's loading an image file?  I know this can be done by sending the proper headers back for an entire page, but I just want to do basically the same thing for just part of the page.
>
> Thanks!
> Floyd
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.