PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have an installation of PHP 4.3.1 on FreeBSD Server. The PHP documentation says "GD Library" is there with it by default and we don't need to configure it manually. But, when I try any image functions it fails and gives this message
Fatal error: Call to undefined function: imagecreatefrompng() in /usr/home/myweb/www/gd.php on line 4.
Does anybody know what the problem is..? Do I need to make any changes is configuration and re-compile it..?. Thanks in advance.
Installation
To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library configure --with-gd. In Windows you'll include php_gd2.dll as an extension in php.ini. There is also php_gd.dll for GD1 but it's not preferred.
Enhance the capabilities of GD to handle more image formats by specifying the --with-XXXX configure switch to your PHP configure line.