Some Points to be remember to solving the problem :
Download this software called, WAMP Server install it
Copy & paste the PHP file in the WWW Directory.
U can browse the WWW Directory by just clicking on the icon in the startup options
Run the application with Url : http://localhost/