Possible duplicate:
PHP end tag
I recently read that? > should be omitted from files containing ONLY PHP
In fact, even the Zend Framework code standard strongly recommends against using? > in files containing only PHP, because:
For files containing only PHP code, a closing tag ("?>") Is never allowed. It is not required by PHP, and its exclusion prevents accidental injection of the rear run in response.
Is trailing blank injection really bad? And really, is this a heinous crime not to be let down? > From files containing only PHP? It just seems unnatural to me to do this.
source share