Please note this is for Windows NT, 2000, ME, XP Home, and XP Pro. XP Pro comes with Microsoft's Internet Information Server -- another web server. If IIS is not currently running (the default), the I still recommend Apache -- it's safer and it's free.
Topic 1: Review of Last Week
We began with a review of last week - Web 101 - Class 3 - Laying out a Page using TablesTopic 2: Installing PHP
Download PHP 4.3.1 Zip File
Create the directory c:\PHP and extract the PHP zip file into that directory
Rename c:\PHP\php.ini-recommended to c:\PHP\php.ini
Move c:\PHP\sapi\php4apache2.dll to c:\PHP -- be sure you get the one for apache2
Topic 3: Installing Apache
Download Apache 2.0.55 Installer
Run the file you downloaded to install. Select the default locations. Make up a domain and email address.
Use CoffeeCup to open c:\Program Files\Apache Group\Apache2\conf\httpd.conf
Add the following lines right below line 172:
PHPIniDir c:/php
LoadModule php4_module "c:/PHP/php4apache2.dll"
AddType application/x-httpd-php .php
Save the file. Restart your computer.
Topic 4: Testing
Open your web browser to http://localhost. You should see the Apache default page.
Open CoffeeCup with a blank file
Enter the following line of code:
<? echo "Hello World"; ?>
Save the file to c:\Program Files\Apache Group\Apache2\htdocs\test.php
Open your web browser to http://localhost/test.php. You should see your Hello World program.
Topic 5: Firewall Issues
Please ensure that Inbound (not Outbound) Web/HTTP - Port 80 is locked down on your computer.