Re: Solution for html source <img="gif_script.php?var..."> ?

From: Date: Thu, 27 Jul 2000 18:56:38 +0000
Subject: Re: Solution for html source <img="gif_script.php?var..."> ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8638@lists.php.net to get a copy of this message
I do this: file - image.php <?php Header("Content-type: image/gif"); $im =imagecreatefromgif("$IMAGEPATH/appindex_status_display_background.gif"); $black = ImageColorAllocate($im, 0, 0, 0); ImageTTFText($im, 10, 0, 20, 41, $black, "$IncludeDir/font/ARIAL.TTF",$Msg); imageGif($im); ImageDestroy($im); ?> call it like <img src="image.php?Msg=foo"> and poof! On Thu, 27 Jul 2000, Matt wrote: > Hi there, > > All my menu items are taken from a database and rendered into GIF files by PHP. > To do this I call a script that takes some vars as well. > Any client that will view the output html source or views/saves an image > will see something like: > > <IMG SCR="make_gif.php?var=$var&bla=$bla"> > > > I realize that if I was to write the generated gifs to disk I wouldn't have > this problem, > but I do not want to do this. (Multiple sites * multiple fonts * multiple > colors = A LOT ) > Does anybody have a nice work around ? > > Thanx. > Matt > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#8638) next »