> 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.
sorry for annoying you all with so many letters.
But this time,when I use imagepng function instead imagegif funtion,the result is
not right ,either!
The warning message displayed also,which is "<b>Warning</b>: ImagePng: No PNG support
in this PHP build in <b>/usr/local/apache/htdocs/index.php</b> on line <b>9</b><br>".
Why&What shall I do now?