Wampserver will give you a server on your own PC (Windows users), where you can test your scripts. If you haven't yet dowloaded the Wampserver software, you can download it from here
After installing the software an icon will appear in the bottom right

From here, you can stop the server, exit it, view help files, and see the configuration pages.
Click on localhost, and there you will see this page : (Localhost just refers to the server running on your own computer. Another way to refer to your server is by using the IP address 127.0.0.1.)

Saving your PHP files
Whenever you create a new PHP page, you need to save it in your WWW directory. You can see where this is by clicking its item on the menu:

c:/wamp/www/
Bear this in mind when you click File > Save As to save your PHP scripts.Launching your PHP scripts
Suppose you have created a php script called test1.php. To launch this script, you need to add the script name after localhost in your browser. So instead of this:
http://localhost/index.php
You would type this:
http://localhost/test1.php
Don't type the name of the wamp folder, This would be wrong, for example:
c:/wamp/www/test1.php