JpGraph Error - Please help!!!!

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
phpsj
Forum Newbie
Posts: 2
Joined: Mon Jun 11, 2007 4:57 pm

JpGraph Error - Please help!!!!

Post by phpsj »

Hi All,

I am new to JPGraph. I have installed Apache 2.0.59, PHP 4.4.5, MySQL 5.0.27 and PHPmyAdmin 2.9.2 using AppServ version 2.4.8 on Windows XP.
When i run my application i am getting the following error on my page where i am displaying a graph using jpgraph...

"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)"

I have no clue what needs to be done... :cry:
Please help!!

Thanks in advance!

SJ
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You need to enable the extension that contains GD.

Find your php.ini, edit the line that refers to php_gd2.dll or similar to remove the leading semicolon.

Restart Apache.
phpsj
Forum Newbie
Posts: 2
Joined: Mon Jun 11, 2007 4:57 pm

Post by phpsj »

In the php.ini file (in C:/Windows folder) the line that refers to php_gd2.dll is already uncommented... without the semicolon. Even after restarting apache.. there is no difference... :(
Is there any other reason for jpgraph not working...
My php version is 4.4.5. I have installed it through AppServ...
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

Do a file search. How many php.ini's have you got? I'll place my bets on 2+. Either sort your configuration out/find which one PHP actually uses or uncomment it in all of them.

Then make sure you've got the libraries/dll's in the right folder(s). Then restart apache.

To test if you're getting anywhere make a php file with this in it:

Code: Select all

<?php phpinfo(); ?>
Check it everytime you make a change, hopefully it will give some sort of reference to the GD library.
Post Reply