05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Windows 95/98/Me: the Windows system directory; Windows NT/2000 or<br />

later: the 32-bit Windows system directory (SYSTEM32)<br />

4. Windows NT/2000 or later: the 16-bit Windows system directory (SYSTEM)<br />

5. The Windows directory (WINDOWS)<br />

6. The directories listed in the PATH environment variable<br />

Using the <strong>PHP</strong> installer to automatically configure <strong>PHP</strong><br />

The <strong>PHP</strong> development group offers an installer that configures a Windows web<br />

server to work with <strong>PHP</strong>. This is the recommended method of installation, as you<br />

don’t need to learn how to edit the registry or how to configure Apache. It is available<br />

for download from http://www.php.net/downloads.php. <strong>PHP</strong>’s installer will automatically<br />

configure your server for many of the more popular web servers for the<br />

Microsoft platform, as shown in Figure 15-1.<br />

Figure 15-1. Choosing the server type in <strong>PHP</strong>’s installer<br />

After you install your preferred web server, running the installer will prompt you for<br />

some values for typical php.ini configuration and the desired web server and configuration<br />

to use. Modifiable parameters here include the install path for <strong>PHP</strong> (typically<br />

c:\php), the temporary upload directory (the default is c:\<strong>PHP</strong>\uploadtemp), the directory<br />

for storing session data (the default is C:\<strong>PHP</strong>\sessiondata), the local mail server,<br />

the local mail address, and the error warning level.<br />

Manually configuring PWS<br />

To configure <strong>PHP</strong> for Personal Web Server, you must add a line in the registry that<br />

associates .php files with the <strong>PHP</strong> engine. For Windows 98, that line is:<br />

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map]<br />

".php"="C:\\<strong>PHP</strong>\\php.exe"<br />

Installing and Configuring <strong>PHP</strong> on Windows | 353<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!