PHPJavascript

Web Development Guide – My Personal Library of Tutorials and Scripts

PHP Install GD Library on windows

April19

GD library is configured as extensions in windows and is very easy to install.

If you need to play around with images like resizing, thumbnails, video thumbnails etc you need to have GD library support on your local web server.

Its very simple to install GD library support windows (IIS should be the same on apache I guess..).

Link on PHP.net: http://www.php.net/manual/en/install.windows.extensions.php

Install

  • Search for file php_gd.dll or php_gd2.dll in the PHP folder (mostly c:/PHP or c:/program files/PHP)
  • Open php.ini (mostly located in C:/windows/php.ini)
    • find ;extension=php_gd2.dll and uncomment it
    • ;extension=php_gd2.dll
      extension=php_gd2.dll

    • If php_gd2.dll is located in c:/php/ext then add the following line
      extension_dir = C:\php\ext
    • If php_gd2.dll is located in c:/php/extension then add the following line
      extension_dir = C:\php\extension
  • Restart webserver or PC

Test Installation

  • Open notepad or dreamweaver++
  • Type <?php phpinfo() ?>
  • Place this file at C:\Inetpub\wwwroot\
  • Click Start -> Control Panel -> Administrative Tools -> Internet Information Systems (IIS)
  • Double click on “Local Computer” -> Right click “Default Website” -> “Properties” -> “Documents” -> “Add” -> index.php -> Click “OK”
  • Open internet explorer or mozilla firefox++ and type http://localhost
  • Search for section on GD. If present then the installation is a success.
posted under PHP

Email will not be published

Website example

Your Comment:

 

2,885 spam comments
blocked by
Akismet