Post the actual error itself.
In this case, I'd expect that it'll be an unexpected $end error. This is invalid:
. Depending on configurations one of the following must be used:
<?php ... ?>
<? ... ?>
<% ... %>
<script language="php"> ... </script>
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.