 |
Back
|
FAQ(s) found under Installation |
Showing 11 of 13 |
Prev | Next
|
How to compile GD graphics library with PHP?
Modified on 2004-04-08
|
The example below is only a guideline to compile GD 2.0 with PHP 4.2.3. It may differ from other system as different PHP version and server environment.
Compiling PHP 4.2.3 with GD 2.0 for Linux server
1. Download the latest GD library file from , and extract to your server directory. Run the following command.
./configure
make
make install
2. Download and extract php-4.2.3.tar.gz from .
3. Download php-4.2.3-gd-2.0.8 patch and copy into the php-4.2.3 source directory.
patch -p1 < ./php-4.2.3-gd-2.0.8.patch './configure' '--prefix=/usr' '--exec-prefix=/usr' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pear' '--with-png' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--enable-exif' '--enable-ftp=shared' '--enable-magic-quotes' '--enable-safe-mode' '--enable-discard-path' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--enable-mbstring' '--with-apxs=/usr/sbin/apxs' make
make install
4. Reboot Apache.
Enable GD 2.0 graphics library with PHP in Windows server
1. Download the php_gd2.dll file from the attachment below and copy it into your PHP extension directory.
2. Edit your PHP.INI file, locate around line 456
extension=php_gd2.dll
3. Uncomment the line by removing the ; (semicolon) sign.
4. Restart your Windows web server and you should have the option enabled. You can check with the php_info() function.
Read More :
- What is GD graphics library?
Attachment : php_gd2.dll
|
|
|
 |
|
 |
Search for Answers |
|
Intelligent FAQ Search. Type in your keywords to search for answers you need. |
|
|
 |
|