Before to run a PHP file on computer, you need to start WAMP server. WAMP installation created a WAMP shortcut icon on your desktop, double click it to start WAMP. Then open your browser and type localhost. It will open default localhost page. From there you can manage PHP Projects and MySQL Database
http://www.phpfolder.com/start-wamp-server