You can save an HTML document on your computer and view it in your web browser and see the results of any changes you have made. However, PHP code requires that you have a web server that will process the document before sending it to your web browser.
To view the output of your PHP file, you will need to get a server that has PHP support, and upload your file to the server.
The tutorial of the above can be seen if you click here
I hope that is of some help to you Josquius?