You can test the PHP application server by running a test page.
<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.
If you installed PHP on your local computer, you can enter the following URL:
http://localhost/timetest.php
The test page should open and display a time of day, as follows:
The specified time is known as dynamic content because it changes every time you request the page. Click your browsers Refresh button to generate a new page with a different time.
NOTE |
|
Looking at the source code (View > Source in Internet Explorer) will confirm that the page does not use any client-side JavaScript to achieve this effect. |
If the page doesnt work as expected, check for the following possible errors:
If you type a file path in the browser (as you might be used to doing with normal HTML pages), you bypass the web server and the application server. As a result, your page never gets processed by the server.
After installing and testing the server software, create a root folder for your web application. (See Creating a root folder (Windows).)