some problems about gd in php

From: Date: Fri, 19 Apr 2002 10:57:49 +0000
Subject: some problems about gd in php
Groups: php.general 
Request: Send a blank email to php-general+get-93662@lists.php.net to get a copy of this message
The version of php is php-4.1.2,the latest version,apache-1.3.24,also latest. 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/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); ?> But the result is warning message in IE:"<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>". Is this a compiling problem?The compiling command of php 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 forgot? Thank you. zhaoxd

« previous php.general (#93662) next »