If PHP has any problems running, then a suitable error message will be displayed which will give you a clue as to what needs to be done next.
Do a 'view source' in the web browser and you will probably find that you can see the source code of your PHP script. This means that the web server did not send the script to PHP for interpretation. Something is wrong with the server configuration - double check the server configuration against the PHP installation instructions.