Many features that you see on the web require that the GD library be enabled on your PHP server. You may need the GD library if you are attempting to display CAPTCHA graphics somewhere on your site. In a default PHP installation, the GD library should already be enabled. The following How To explains how to determine if the GD library is enabled on your PHP server, and how you might be able to turn this on.
Is GD turned on? ï¿¼ ï¿¼
You can check to see if the GD library is enabled by creating a simple phpinfo page on your web server. ï¿¼ ï¿¼
1. Create a new file called phpinfo.php
2. Open this file in Notepad, or your preferred editor such as Dreamweaver.
3. Add the following line of code.
4. Save your file within your local web server. ï¿¼
5. Open a web browser such as Firefox or Internet Explorer. ï¿¼
6. In the Address bar, enter the URL to this file. Typically, on your local testing server, this will be http://localhost/phpinfo.php. ï¿¼
7. If the GD library is enabled, the resulting page should display the following section. ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼If you don’t see the above section, please refer to the PHP manual for the steps needed to install GD. http://us2.php.net/manual/en/image.installation.php. ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ ï¿¼
Installing GD ï¿¼ï¿¼ ï¿¼ï¿¼
1. Open your PHP.ini file in Notepad, or your preferred WYSIWYG editor. This file is normally located in the C:\Windows\ directory. ï¿¼
2. Locate the following line. ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼;extension=php_gd2.dll ï¿¼ï¿¼ï¿¼ ï¿¼
3. Remove the preceding semicolon (;) to enable the option.
4. Save your file.
5. Restart the web server. ï¿¼ï¿¼ï¿¼ï¿¼ï¿¼