Page 1 of 1

JpGraph Error - Please help!!!!

Posted: Mon Jun 11, 2007 5:03 pm
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

Posted: Mon Jun 11, 2007 5:41 pm
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.

Posted: Tue Jun 12, 2007 1:07 pm
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...

Posted: Tue Jun 12, 2007 1:45 pm
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.