Re: text string in a gif

From: Date: Sat, 07 Apr 2001 13:49:51 +0000
Subject: Re: text string in a gif
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47560@lists.php.net to get a copy of this message
urldecode($string) On Sat, 7 Apr 2001, Victor wrote: > Hello friends, > > For those who are not allergic to newbie questions: > > I want to make a button for a web page from a background gif and a > string. Till here nothing unusual. I used the example from the php > manual and it works like a breeze. > > <?php > Header("Content-type: image/gif"); > $string=implode($argv," "); > $im = imageCreateFromGif("MyBackground.gif"); > $color = ImageColorAllocate($im, 196, 51, 28); > ImageTTFText ($im, 20, 0, 6, 7, $color, "MyFont.ttf", $string); > ImageGif($im); > ImageDestroy($im); > ?> > > The only problem I have (and for me it is really biiiiig) is that when > I use a string which contains a blank eg "My text" the text of the > button looks like "My%20TEXT" :-( > > How can I fix it?? > > > TIA, > Victor > > > > -- > 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 (#47560) next »