ImageTTFText question

From: Date: Tue, 18 Jul 2000 18:12:26 +0000
Subject: ImageTTFText question
Groups: php.general 
Request: Send a blank email to php-general+get-7114@lists.php.net to get a copy of this message
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 (#7114) next »