PHP Parse error: syntax error, unexpected end of file in XXXXX.php
- Check that you have spaces around curly braces, i.e. for example don’t use <?php}?> but instead use <?php } ?>
- If your script has been running without problems on earlier versions of PHP but you are now running PHP 5.4 or later, replace all occurrences of <? with <?php