Installin WAMP Server to run PHP:
- Goto www.wampserver.com and download WAMP Server.
- Just install it like other softwares by just clicking next next...
- Now go to START menu of windows and start wampserver.
Generally, the path is Start -> WapmServer -> start WampServer
- Open your web browser and type http://localhost (or http://127.0.0.1 )
If you see a default WampServer Home Page, you installation is success.
- Now put your php code in www folder in your wamp installation directory.
Usually this is C:\wamp\www
- Now type http://localhost/filename.php in your browser. (where filename is your php file name)
It will execute your php code.. Thats it...