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:
Parse error: syntax error, unexpected $end in X on line Y
where X is the file path and Y the line number, [...]

, or by using our