306 Setup for Sample PHP Site
12. In the temporary folder containing your unzipped PHP files, locate the
file called libmysql.dll and copy it to the C:\Windows\system32 folder.
This file is required so that IIS can work with PHP 5 and MySQL.
13. Restart IIS.
For more information on enabling the MySQL extension, see the PHP
website at www.php.net/manual/en/ref.mysql.php. For more information
on the application server, see the PHP documentation, which you can
download from the PHP website at www.php.net/download-docs.php.
After installing PHP, you can test the server to make sure it works properly.
Testing the PHP installation (Windows)
You can test the PHP application server by running a test page.
To test the PHP application server:
1. In Dreamweaver or any text editor, create a plain text file and name it
timetest.php.
2. In the file, enter the following code:
<p>This page was created at <b>
<?php echo date("h:i:s a", time()); ?>
</b> on the computer running PHP.</p>
This code displays the time the page was processed on the server.
3. Copy the file to the C:\Inetpub\wwwroot folder of the Windows
computer running IIS.
4. In your web browser, enter the URL of your test page, and then press
Enter.
If you installed PHP on your local computer, you can enter the
following URL:
http://localhost/timetest.php