Pages

Mar 15, 2010

Installing PHP (Part 3)


Some configure Options

When we ran the configure script, we included some command-line arguments
that determined the features that the PHP interpreter will include. The configure
script itself gives you a list of available options. From the PHP distribution directory
type the following:
./configure --help
The list produced is long, so you may want to add it to a file for reading at leisure:
./configure --help > configoptions.txt
Although the output from this command is very descriptive, we will look at a few
useful options— especially those that might be needed to follow this book.
--enable-track-vars
This option automatically populates associative arrays with values submitted as part
of GET, POST requests or provided in a cookie. You can read more about arrays in
Hour 7, "Arrays," and about HTTP requests in Hour 13, "Beyond the Box." It is a
good idea to include this option when running configure.
--with-gd
--with-gd enables support for the GD library, which, if installed on your system,
allows you to create dynamic GIF or PNG images from your scripts. You can read
more about creating dynamic images in Hour 14, "Working with Dynamic Images."
You can optionally specify a path to your GD library's install directory:
--with-gd=/path/to/dir

--with-mysql
--with-mysql enables support for the MySQL database. If your system has MySQL
installed in a directory other than the default location, you should specify a path:
--with-mysql=/path/to/dir
As you know, PHP provides support for other databases. Table 2.1 lists some of
them and the configure options you will need to use them.

Some Database configure Options


Database configure Option Adabas D --with-adabas
FilePro --with-filepro

msql --with-msql

informix --with-informix

iODBC --with-iodbc

OpenLink
--with-openlink
ODBC

Oracle --with-oracle
PostgreSQL --with-pgsql

Solid --with-solid

Sybase --with-sybase

Sybase-CT --with-sybase-ct

Velocis --with-velocis

LDAP --with-ldap



0 comments: