Hi,
I am using php 5 in windows i want to configure gd 2 graphics library with my php 5 so that its functions can be access in my php programme.
please guide me, what should i do.
Thanks,
Bye.
How do i configure gd 2 graphics library with php 5 under wi
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
- find the line
Code: Select all
;extension=php_gd2.dll - remove the semicolon.
- Restart your web server
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
http://php.net/gd wrote:Installation
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.
In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.
Note: To enable exif support in Windows, php_mbstring.dll must be loaded prior to php_exif.dll in php.ini.
To disable GD support in PHP 3 add --without-gd to your configure line.
Enhance the capabilities of GD to handle more image formats by specifying the --with-XXXX configure switch to your PHP configure line.