we would need to know the PHP error to be able to troubleshoot.
try adding this code at line 1:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
if this does not show the actual error on the page, you will need to look into the servers error logs to find the error. Once we know the PHP error, we can troubleshoot it.