Datasheet

P1: KTX
WY027-01 WY027-Mercer WY027-v2.cls June 5, 2004 0:44
Getting Up and Running
Figure 1-15
like switches, turning a variety of PHP behaviors on and off. Extensions provide added or enhanced
built-in capabilities to PHP.
At the top of your PHP directory should be les called php.ini-dist and php.ini-recommended.
Copy the php.ini-dist le to D:\WINNT (using the appropriate drive letter), rename it php.ini, and
open it up with Notepad. Scroll down the document until you nd a line that looks like:
extension_dir = C:\php\extensions ; directory in which the loadable extensions
(modules) reside
Make sure that this path is the correct path to the extensions directory of the unzipped PHP5 installation.
If it isnt, change it to point to the right place (look for an ext folder under your unzipped PHP folder).
The extensions directory is the one that contains a large number of les whose names begin with php_
and end with .dll.
The next section in your php.ini le tells PHP which extensions to load. There are semicolons at the
beginning of all the lines that load extensions you dont needa semicolon means that PHP will ignore
the directive on that line. Remove the semicolon from extension=php_gd.dll, so that you have text
like this:
;extension=php-filepro.dll
extension=php-gd.dll
;extension=php_mssql.dll
23