Debugging PHP – Parse error: syntax error, unexpected $end



If you have are using the short form <?  for PHP instead of the long form <?php you might be faced with this parse error when running your script on different systems:

Update all references to the long version <?php

Ensure that all linked files also have been updated!! A pain to troubleshoot.