Yeah,I have already compiled --with-png-dir=../libpng --with-zlib-dir=../zlib. The command is : ./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.24 --enable-track-vars --with-gd=../gd-1.8.4 --with-png-dir=../libpng --with-zlib-dir=../zlib Has something wrong or something I forgotten? But it is still unworked.............. ps:the test code is: <? Header("Content-type: image/png"); $im = imagecreate(400,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, $white); imagestring($im, 5, 4, 10, "Graph TEST!!", $white); ImagePNG($im); ImageDestroy($im); ?> ----- Original Message ----- From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 19, 2002 3:46 PM Subject: Re: [PHP] Why my gd can not work?help please!!! > On Friday 19 April 2002 15:41, zhaoxd wrote: > > > 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? > > > Did you compile php with: > > --with-png-dir > > ? > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > Riffle West Virginia is so small that the Boy Scout had to double as the > town drunk. > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >