Page 1 of 1

Can't access GD library. Any ideas???

PostPosted: 22. October 2004 18:21
by colfax
Hi, I'm having trouble accessing GD functions, and was hoping I might find some help.

My Setup:
I have the latest build of XAMPP installed on a clean Windows XP machine. I also made a GHOST image of my clean OS + XAMPP, so I can revert back to a default XAMPP install.

The install is located at C:\apachefriends on my machine.

When trying to access functions from the GD library, I am told that the functions are not defined.

(Example: Fatal Error: Call to undefined function imagecreate())

I have opened "C:\apachefriends\xampp\php\php.ini" and ensured that the following definitions exist and are uncommented.

1. extension=php_gd2.dll
2. extension_dir = C:\apachefriends\xampp\php\ext

I also ensured that a copy of php_gd2.dll exists in C:\apachefriends\xampp\php\ext.

Also, when I look at "phpinfo" I don't see any reference to GD.

I don't know what else to look for or try. Does anyone have any suggestions? They'd be much appreciated!

-colfax

PostPosted: 22. October 2004 18:28
by Wiedmann
I have opened "C:\apachefriends\xampp\php\php.ini" and ensured that the following definitions exist and are uncommented.

The correct/used php.ini is in:
C:\apachefriends\xampp\apache\bin\php.ini

PostPosted: 22. October 2004 18:35
by colfax
Thanks Wiedmann,

the definitions in C:\apachefriends\xampp\apache\bin\php.ini are correct.

Specifically:
1. "extension=php_gd2.dll" is uncommented.
2. extension_dir = C:\apachefriends\xampp\php\ext

Anything else I might try?

PostPosted: 22. October 2004 18:40
by Wiedmann
Can you see something at the "Instant Art" demo from the XAMPP menu?

In phpinfo(), points "Configuration File (php.ini) Path" to the correct location?

PostPosted: 22. October 2004 19:03
by colfax
Yes, I can see the Instant Art demo.

phpinfo() is pointing to the wrong place. I installed Nusphere's PhpEd, and it is pulling it's own php.ini file from
"C:\Program Files\nusphere\phped\php\php.ini"

That must be the problem. Thanks!

-colfax