i got wamp to run and i can now run my page locally.U've saved me and my friends the trouble of uploading to our sites to test our php pages and i'am grateful.Unlike HTML, PHP needs a webserver to run its interpreter.
Download a WAMP (preconfigured package containing Apache MySQL and PHP for Windows) such as AppServ or XAMPP or such.
Once you have a webserver installed, make sure Apache is running, put your .php files in the correct folder (for AppServ it is C:\AppServ\www by default) and then go to http://localhost/yourphpfile.php in your browser).