1.php
<?
echo("Hello World!");
?>
2.php
<?php
echo("Hello World!");
?>
Try above two example php files
If 2.php works well, then change my script as it. (Add php after <? )
If both of them don't work, you need to check your HTTP server setting, add php support to it.