Install PHP on Windows XP (part2)
Set
up Microsoft Internet Information Server (IIS) compatible with PHP.
Click on "Start", select "Control Panel" and click on "Administrative
Tools" icon. In the popup window, click "Internet Information Services"
icon. You will see the following window:

Right click on "Default Web Site" or any virtual directory in it.
You will see the following window:

In "Home Directory" Tab, select "Scripts only" for "Execute
Permissions".
Then click on "Configuration." button. You will see the
next window:
Click "Add" button.

Input "c:\php\php5isapi.dll" for "Executable" and ".php" for
"Extension". Then click several "OK" to close
all those windows.
Test
your installation. Copy the following code, save as test.php and
move it to C:\inetpub\wwwroot or any virtual directory you just go
through the above installation steps.
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
Assume you put test.php under C:\inetpub\wwwroot. Open your browser,
type http://localhost/test.php, you
should be able to see "Hello world".
Congratulations! You are ready to learn PHP. |