Learn how to install PHP on your windows and then test the server with a php script.
In this section we will learn the Installation process for the WAMP server, which includes PHP, MySQL and Apache server. The WAMP server is single installation file that installs PHP, MySQL and Apache server on your computer. This is one of the easiest method to setup the PHP development environment. You will be able to set-up your PHP development environment in less than 20 minutes.
Let's start the PHP installation
Here is the quick steps to install WAMP sever.
1. Download the WAMP server from http://www.wampserver.com/en/download.php
2. Double click on the .exe file to start the installation
3. Once installation is finished your development environment is ready and you can test the application there.
Read the detailed WAMP installation process at http://roseindia.net/tutorial/php/phpbasics/Downloading-Installing-Wamp.html.
Developing the sample example
Now we will develop a simple php file that simply prints the current date on browser. Go to c:\wamp\www directory (or the directory where you have installed the WAMP) and then create date.php and add the following code into it:
echo date("Y/m/d") . "<br />";
echo date("Y.m.d") . "<br />";
Then open the browser and type http://localhost/date.php. The date.php file will display the current date in the browser.
Read the detailed process of testing the php code on the WAMP server at http://roseindia.net/tutorial/php/phpbasics/Running-Testing-Wamp.html
In this section you learned how to test the application WAMP server. Linux server comes with the pre-configured PHP and Apache. You can also use the Linux server to test the PHP applications. Then the testing process will be the same, you have to copy the php file on server and then type the url in the browse to run the script.
In the next section we will start learning the PHP Syntax and develop more complex examples.
Recommend the tutorial