Re: ImageTTFText question
| From: | Andreas Pour | Date: | Tue, 18 Jul 2000 18:15:03 +0000 |
| Subject: | Re: ImageTTFText question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7116@lists.php.net to get a copy of this message | ||
Hi,
What do you mean by middle of the page? You mean inside HTML? In that
case use "<IMG SRC=/path/to/my/gif/script>".
Ciao,
Andreas
Eric Wood wrote:
>
> 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: Ω");
> 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