Re: Why my gd can not work?help please!!!
| From: | Jan Peuker | Date: | Fri, 19 Apr 2002 07:15:22 +0000 |
| Subject: | Re: Why my gd can not work?help please!!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-93634@lists.php.net to get a copy of this message | ||
GIF is licensed by Unisys(it is a compuserve format). This is very
expensive, so it has been cut out of php. Solution: a) use PNG b) get an old
version of php.
regars,
Jan Peuker
P.S.: In future, please don't post 3 times using courier-extrabig.
----- Original Message -----
From: "zhaoxd" <zhaoxd@capitel.com.cn>
To: "php mailling list" <php-general@lists.php.net>
Sent: Friday, April 19, 2002 9:06 AM
Subject: [PHP] Why my gd can not work?help please!!!
> I have installed gd-1.8.4 in apache server without any problems.To check
if the gd can work,I write some codes in php like this:
> <?
> Header("Content-type: image/gif");
> $im = imagecreate(40,30);
> $black = ImageColorAllocate($im, 0,0,0);
> $white = ImageColorAllocate($im, 255,255,255);
> imageline($im, 1, 1, 350, 25, $black);
> imagearc($im, 200, 15, 20, 20, 35, 190, $white1);
> imagestring($im, 5, 4, 10, "Graph TEST!!", $white);
> ImageGif($im);
> ImageDestroy($im);
> ?>.
> However,the output in IE is the warning message:" <b>Warning</b>:
ImageGif: No GIF create support in this PHP build in
<b>/usr/local/apache/htdocs/index.php</b> on line
<b>9</b><br>".why??
>
> when I add comment to the line of ImageGif($im),nothing is displayed,why??
>
> ps:my php work very well in this server.
>
> help,please!!
>
>
>
>
>
>