The way the heredoc syntax works on my server requires a line feed between the end marker and the semi column
Not working:
// heredoc
print <<<HTML
...
anything here.... html code or php variables
....
HTML;
Working:
// heredoc
print <<<HTML
...
anything here.... html code or php variables
....
HTML
;
Hope it helps.