note 8593 added to Image functions
| From: | fai at plant dot com dot hk | Date: | Wed, 20 Sep 2000 18:47:08 +0000 |
| Subject: | note 8593 added to Image functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5238@lists.php.net to get a copy of this message | ||
Hi every PHP expert:
When i use script below --
<?
Header("Content-Type: image/gif");
$im=ImageCreate(100,100);
$back = ImageColorAllocate($im, 0, 0, 0);
$white= ImageColorAllocate($im, 255, 255, 255);
ImageLine($im, 25, 25, 75, 75, $white);
ImagePng($im);
ImageDestroy($im);
?>
i found the browser can't get the image,
i only ask me save it or open it. Could
any one tell me what is the problem.
Thanks a lot.
http://www.php.net/manual/ref.image.php