Page 1 of 1
How do i configure gd 2 graphics library with php 5 under wi
Posted: Mon Apr 03, 2006 5:17 am
by saqib81pk
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.
Posted: Mon Apr 03, 2006 8:28 am
by feyd
- find the line
- remove the semicolon.
- Restart your web server
Posted: Mon Apr 03, 2006 8:28 am
by John Cartwright
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.