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:
Parse error: syntax error, unexpected $end in X on line Y
where X is the file path and Y the line number, usually the last line of the file.
To avoid this error, refrain yourself from using the short form and stick to (<?php ?>), despite the extra 3 characters. This will make your code universally accessible and it is essential if your developing for beyond your own personal use. If you insist in using the short form (<? ?>), and you get this error, you can enable the short form option in the php.ini file.
Keep in mind though, that the short form is supposed to be deprecated in PHP 6. If this goes through you will have to go back and change all your source files.