Datasheet
P1: KTX
WY027-01 WY027-Mercer WY027-v2.cls June 5, 2004 0:44
Chapter 1
Figure 1-14
Now, the directory you created (such as PHPRC01) contains several subdirectories, and a few text files. It
also contains a program file called php.exe, which you won’t actually be using, and a library file called
php5ts.dll (in the dev folder). Copy this .dll to your D:\WINNT\System32 directory (using the
correct drive letter for your machine). Now copy the rest of the .dll files from here to your
D:\WINNT\System32 directory as well. If Windows complains that you’ve already got a file by one or
other of these names, then keep your old one—don’t overwrite it with the newly downloaded files.
If you prefer not to copy all your.dlls into your System32 directory and you are installing PHP as an
SAPI (like this book does), you may create another folder for them and make a change to your PATH
environment variable so that they can be found. (A PATH environment variable contains a list of
directories—paths—in which Windows will look for things, such as your .dlls. If, for example, you
have a C:\php5\dlls directory, you’d add the string C:\php5\dlls to your variable, and then anything
in that folder could be used by your Windows environment. To set the variable, select Start
➪ Control
Panel
➪ System ➪ Advanced ➪ Environment Variables, and locate and set the PATH variable.)
php.ini and Extensions
As mentioned earlier, the php.ini file contains instructions to PHP such that, when it is running, certain
configuration settings are in place and certain extensions to PHP are running. Configuration settings are
22