png /gd problem

From: Date: Mon, 10 Jan 2000 09:07:20 +0000
Subject: png /gd problem
Groups: php.version4 
Request: Send a blank email to php-version4+get-9000@lists.php.net to get a copy of this message
Hello, I'm having a problem with php4 the CVS and the beta version. The problem is that I cannot run the script I've placed under this mail. This script does run under 3.0.13 which i also compiled myself. What I think is strange is when I execute the function phpinfo() I'll get back some info about PHP and GD, but there is no more further info about it. And it seems there shuold be. -- gd Version 1.6.2 or higher with FreeType support (linked with ttf library) which supports: ---------------------------------------------------------------------------- ---- -- That's it. I compiled it with: ./configure '--with-mysql=yes' '--enable-safe-mode' '--enable-sysvsem' '--enable-sysvshm' '--enable-bcmath' '--with-zlib=yes' '--with-ttf' '--with-ftp' '--with-xml' '--with-gd=/usr' '--with-yp' '--with-jpeg-dir' '--with-tiff-dir' '--with-config-file-path=/etc/httpd' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/lib/apache/bin' '--with-java=/usr/lib/jdk1.1.7' 'i586-suse-linux-gnu' Thank's, Derk Gortemaker the scipt: <?php Header("Content-type: image/png"); $im = imagecreate(600,600); $black = ImageColorAllocate($im, 0,0,0); $white = ImageColorAllocate($im, 255,255,255); $red = ImageColorAllocate($im, 255,0,0); $green = ImageColorAllocate($im, 0,255,0); $blue = ImageColorAllocate($im, 0,0,255); ImageTTFText($im, 60, 0, 50, 440, $white, "/usr/local/fonts/ttf/ARIAL.TTF", "Hello World"); ImageArc($im, 100, 100, 500, 500, 360, 180, $white); $polygon1=array(110, 110, 550, 60, 100, 200); $polygon2=array(210, 110, 550, 60, 100, 200); $polygon3=array(310, 110, 550, 60, 100, 200); ImageFilledPolygon($im, $polygon1, 3, $red); ImageFilledPolygon($im, $polygon2, 3, $blue); ImageFilledPolygon($im, $polygon3, 3, $green); ImageDashedLine($im, 100, 100, 400, 400, $white); ImagePng($im); ImageDestroy($im); ?>

« previous php.version4 (#9000) next »