As stated earlier, PHP is server side language and therefore you need server to run PHP scripts. But don’t worry, we are not suggesting you to buy any server. Rather than investing money in buying server, we will pretend that your computer is a server. Yes! It can be done by using a software called ‘Wampserver’.
Wampserver will permit us to test PHP scripts on own machine. Sounds confusing? Well, don’t be cause we will explain each and every step to install software and test if it successfully executes script.
You can download Wampserver from here .
Install it ! If installation is successful, icon of flash server will flash at the right bottom corner of your screen.
Clicking on phpinfo() must bring you with following page:
If the page appears, then it is an indication that your server is up and running. On next page we will learn to how to save php files using software we have just installed.