Welcome to Webmasterworld.
Before Expecting to load any PHP scripts there are some points in the checklist which you should make sure they work, before moving ahead.
1) Does your server support php? html files can be run by any server but php files need to have support of php added before they can recognize php language. for example on a windows based server you ll probably have support for ASP and ASP.NET rather then php (usually)
2) If you are not sure if the answer to Question 1 is yes or no, then do this
paste the above code into a file named like test.php
save it, upload it to root of your server, call it and see what it prints out, if you see a long page telling details about php's installation on your server, This means you are ready to rock n roll. BUT in any other case , i mean if you dont see PHP details in browser when you call that file, then be assured that some more work has to be done before going live with php ;)
Let me know about anything you find.
I ll be glad to guide you as long as you say.