The icon essentially means that it was a broken image, or that they code did not work. I know that wasn't much help.
On another point, in my opinion, it doesn't make a whole lot of logical sense to have a die("Error text") statement in code that creates an image.. If an error does occur, it will still display the same broken image icon. However, I am not the definitive word on the matter, and if you or anyone else has a different opinion on the matter, I would be more than happy to hear it. Jordan "Teresa Narvaez" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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-calenda r > --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