faqts : Computers : Programming : Languages : PHP : Installation and Setup : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

22 of 75 people (29%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How do I setup the GD library with PHP to create dynamic graphics?

Sep 20th, 1999 11:14
Richard Lynch, Nathan Wallace,


If you use php on unix: you have to compile in support from gd in php.

1. get the source distribution of php and apache

2. get and install the GD library from http://www.boutell.com/gd/

3. read the INSTALL file in the php source dir for instructions

4. make and install php/apache with gd support using :

./configure --with-gd[=DIR] (plus your other configure directives)

Include GD support (DIR is GD's install dir).


I don't know all the details, since I don't use GD myself, but the GIF 
format was recently (as of 9/20/1999) copyrighted so that you can no 
longer use the most recent GD to do dynamic GIFs.

Options:
1. Use an old GD library from somewhere other than the URL above.
2. Migrate to PNGs.