Is this PHP script on a webserver or running locally on your PC or Mac or whatever? If it is then make usre that the webserver is running and that the file is in the proper location on the server htdocs if it is an Apache server, not sure about an IIS server but I think it is called web. Unlike HTML which is already associated with Internet Explorer on a PC, PHP is a server side language and your PC would not know how to handle a .php extenstion so PHP to be seen must be on the server that is running and you must view it by manually entering the URL of the file into your browser. If you have a local webserver then the URL would be http://localhost/ and the name of the php file. So to test your webserver copy and paste the below code into your webservers proper folder and then open your browser and type http://localhost/test.php and it should work. Name the below test.php
<?php
echo "This is a PHP test <br />":
echo "Success, the PHP displayed in the browser!";
?>