Post the actual error itself.
In this case, I'd expect that it'll be an unexpected $end error. This is invalid:
<?php>. Depending on configurations one of the following must be used:
<?php ... ?>
<? ... ?>
<% ... %>
<script language="php"> ... </script>
Edit:
Also, things like this are invalid: <p>HERE;</p>. HEREDOC ending delimiters MUST be on a line by themselves and not be preceded by any characters.