>OUTPUT from phpinfo() >----------------------- >GD Support enabled >GD Version 1.6.2 or higher >WBMP Support enabled
but does it say GD Support enabled GD Version 1.6.2 or higher . . . PNG Support enabled . . . ? If the line with "PNG Support enabled" is not there then something went wrong. I had the same problem once. Don't rely on the compiler complaining - _you_ carefully have to make sure the PNG libs are in the right place (easier said than done). Remember to run "gmake clean" between compilations of PHP Good luck. Frank At 20:16 11/3/2002 -0500, you wrote: >Hello, >Background info: >---------------- >I'm running > o PHP 4.1.1 on a linux server kernel(2.2.16). > o Using Netscape Communicator 4.75 > o Compiled and installed the gd(1.8.4) library > >Problem(2 problems): >-------------------- >1.- The following code won't display an image(I get an icon of some type of >piece of paper). ><?php > header ("Content-type: image/png"); > $im = @ImageCreate (50, 100) > or die ("Cannot Initialize new GD image stream"); > $background_color = ImageColorAllocate ($im, 255, 255, 255); > $text_color = ImageColorAllocate ($im, 233, 14, 91); > ImageString ($im, 1, 5, 5, "A Simple Text String", $text_color); > ImagePng ($im); >?> > >2.- The configure Command from phpinfo() is different than what I actually >typed at the > command line. Also, phpinfo() area for GD does not show PNG or JPEG >support. why? > from phpinfo() > -------------- > './configure' '--with-mysql' '--with-apxs=/var/apache/bin/apxs' > '--with-gd=/home/builder/downloads/untarred/gd-1.8.4' >'--enable-sockets' > '--enable-calendar' '--enable-ftp' '--enable-trans-sid' > What I typed at the command line: > --------------------------------- > ./configure --with-mysql --with-apxs=/var/apache/bin/apxs > --with-gd=/home/builder/downloads/untarred/gd-1.8.4 > --with-png-dir=/usr/lib --enable-gd-native-ttf --with-ttf > --with-jpeg-dir=/home/builder/downloads/untarred/jpeg-6b > --with-t1lib=/home/builder/downloads/untarred/t1lib-1.3.1 > --enable-sockets --with-zlib-dir --with-xpm-dir --enable-calendar > --enable-ftp --enable-trans-sid > >OUTPUT from phpinfo() >----------------------- >GD Support enabled >GD Version 1.6.2 or higher >WBMP Support enabled > >I would really appretiate any ideas you could give me. >Thanks in advance! -Teresa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php