On Friday 19 April 2002 15:06, zhaoxd wrote:
> 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??

The GD library which is on your system has the GIF functions removed owing to 
patents/licensing issues. Either get an older version of the library (the 
official GD Library website doesn't have it anymore, try searching on 
Google), or use PNG instead of GIF.

Also please refrain from posting the same thing more than once -- it only 
annoys people.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Saints should always be judged guilty until they are proved innocent.
                -- George Orwell, "Reflections on Gandhi"
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to