Re: ImageTTFText question

From: Date: Tue, 18 Jul 2000 21:41:08 +0000
Subject: Re: ImageTTFText question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7156@lists.php.net to get a copy of this message
Im not sure I understood the question right, but here goes my interpretation: You use like this. <IMG SRC="image.php"> And image.php contains the code below. Hope I understood your question, regards, David Garcia Watkins ----- Original Message ----- From: "Eric Wood" <eric@interplas.com> To: <php-general@lists.php.net> Sent: Tuesday, July 18, 2000 8:12 PM Subject: [PHP] ImageTTFText question > I can get an example like this to work: > > <?php > Header ("Content-type: image/gif"); > $im = imagecreate (400, 30); > $black = ImageColorAllocate ($im, 0, 0, 0); > $white = ImageColorAllocate ($im, 255, 255, 255); > ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf", > "Testing... Omega: &#937;"); > ImageGif ($im); > ImageDestroy ($im); > ?> > > but when I want to put the image in the middle of a page somewhere I get a > garbage.. it's like the Content-type: image/gif is absolutely needed. So > how can I use this function after the header has already been sent? > > -Eric Wood

« previous php.general (#7156) next »