note 1200 deleted from ref.image by didou
| From: | didou@php.net | Date: | Fri, 15 Aug 2003 14:57:32 +0000 |
| Subject: | note 1200 deleted from ref.image by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54206@lists.php.net to get a copy of this message | ||
Note Submitter: philippe@styx.net
----
I hope this can help hours of investigation for people how doen't know how to do it:
To simulate a gif from a php3 file:
// create the image
$gif = ImageCreate(200,200);
$bg = ImageColorAllocate($gif,0,0,0);
$tx = ImageColorAllocate($gif,255,128,128);
ImageFilledRectangle($gif,0,0,200,200,$bg);
ImageString($gif,3,70,90,"it works !",$tx);
// send the image
header("content-type: image/gif");
ImageGif($gif);
That's all folks !!