Page 1 of 1

GD Support

PostPosted: 15. July 2007 19:49
by lfperry
I have installed the XAMPP.zip, and I am trying to enable the GD grapics.

I read the PHP documentation which says:

Note: Since PHP 4.3 there is a bundled version of the GD lib. This bundled version has some additional features like alpha blending, and should be used in preference to the external library since its codebase is better maintained and more stable.

To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng™ and libjpeg™ to compile.


I also found this (somewhere in my quest):

If PHP is already working, you may now activate the GD by doing the following:

1. Uncomment the - extension_dir="". Then you should point it to where the extensions folder is located. Extensions folder is extracted from PHP zip file you downloaded.
Example: extension_dir = C:/PHP/extensions

2. Uncomment the following by removing the semicolon -
Example: extension=php_gd2.dll


I did these 2 steps, restarted apache and mysql, and ran one of the contributed test php scripts to see if GD is supported, and it says "The GD extension isn't loaded"

It is starting to look like I need to download PHP and run the
./configure --with-gd

Any other suggestions?

PostPosted: 15. July 2007 20:40
by Wiedmann
I have installed the XAMPP.zip,

a) there is no distribution file with the name "XAMPP.zip".
b) how have you installed XAMPP exactly?
c) which XAMPP version?
d) your os?

PostPosted: 15. July 2007 21:01
by lfperry
Sorry, could have bee more specific.

I am running WIN XP SR2

I downloaded and extracted "xampp-win32-1.6.2.zip."

I put the xampp at c:\xampp

So far, everything looks good except the GD support.

I am implementing open-realty and have it running in the htdocs directory. It wants to use GD to create thumbnails of images. This app uses mysql and email, and all that is working.

PostPosted: 15. July 2007 21:13
by Wiedmann
a) What's about the XAMPP demos? (e.g. biorhythm)
b) in phpinfo() you can't see anything about gd?
b) in phpinfo(), what is the location of the loaded "php.ini"?

PostPosted: 15. July 2007 21:42
by lfperry
It was the php.ini - I had installed php by itself, and php was looking there, not in the XAMPP\php directory.

All is fine now - THANKS!