Browser saving the .php file?

Your web browser will typically prompt you to save a .php file if it can’t parse it. This is caused by two things: a temporary glitch on the web server that will resolve itself shortly, or if you are trying to load a locally hosted (that means a file on your own computer) without a running web server.

To preview .php files on your own computer you must install web server software. recommends XAMPP.