Problem with GD library in PHP

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!

Moderator: General Moderators

Post Reply
kumarangopi
Forum Newbie
Posts: 10
Joined: Wed Oct 18, 2006 7:43 am

Problem with GD library in PHP

Post by kumarangopi »

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)


Can someone explain this error, i have installed GD 2.0.33 and PHP 5.x.How to move ahead with this error ?
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

A couple of questions...

Is the GD .dll in the ext folder? Is it also enabled in the php.ini file? Does the version of GD you listed support PNG?
kumarangopi
Forum Newbie
Posts: 10
Joined: Wed Oct 18, 2006 7:43 am

Post by kumarangopi »

I dont know how to enable gd in php.ini, ther is not ext folder.I think GD 2.x supports PNG
Post Reply