Hello. I am very new to Linux and not very experienced at troubleshooting
the programs that run on Linux.
Here is what I have:
I am running Apache 2.0.40 with php (4.2.3) as a module on Red Hat Linux
7.3. I have compiled GD (2.0.4) and it did seem to find PNG, FeeType, and Z
libraries. I have compiled PHP with the following options:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --enable-m
agic-quotes --enable-discard-path --enable-calendar --with-gd --with-gd-dir=
/usr/lib --with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-xpm-dir=/us
r/lib --with-freetype-dir=/usr/lib --with-zlib-dir=/usr/lib --enable-track-v
ars
phpinfo() displays correctly and shows that my GD support is enabled.
But when I run the test script
<?php
header ("Contenttype: image/png");
$im = @ImageCreate (50, 100)
or die ("Cannot create a new GD image.");
$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);
?>
I get an error:
"Fatal error: Call to undefined function: imagepng() in
/var/www/html/testgd.php on line 8"
I have spent 4 days trying to figure out what's wrong, and now I am stuck.
Please help
Thanks
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php