GD library error in PHP

Notice: Use of undefined constant IMG_PNG - assumed ‘IMG_PNG’ in C:\ASP\php\jpgraph-2.1.1\src\jpgraph.php on line 410
JpGraph Error This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)

This is the error iam getting, how to go with it?Please help me (:

Install GD Library.

i installed GD library i dont know how to attach it to PHP

Go to and download the ‘PHP 4.x.x zip package’ if you don’t allready have it. This package contains the GD-Library for windows. Find php_gd2.dll (or php_gd.dll if you need gif-support, but you will have less good image quality) and put it in your php folder (Usual c:\php). Find in the php.ini in your windows folder:


Uncomment extension=“php_gd2”.dll by deleting the ‘;’ in front of it.

restart apache