Enabling PHP's GD Graphics Library
[locked]
To enable the PHP graphics library, you simply need to edit a few lines in php.ini. In this file, there is a section for Windows extensions. Before we turn on the GD extension, make sure your server knows where the extensions are located. Change the path accordingly in php.ini:
; Directory in which the loadable extensions (modules) reside.
extension_dir = C:\FoxServ\php\extensions
As for the extensions themselves, most of them will be disabled by default (commented out with a ";"). To enable the GD graphics library, find the one that is titled "php_gd.dll" or "php_gd2.dll" and remove the ";".
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
extension=php_gd.dll
This isn't too complex of a change to make, but my big problem was that I could not find the php.ini file! I expected it to be in "C:\Foxserv\php\" but instead it was under "C:\Windows\".
When you are done editing "php.ini", save your changes. Make sure you remember to restart Apache so the changes take place.
Now What?
To put the GD library in action, I recommend installing
phpThumb (w). It's pretty straight forward, and works like a charm.