I think its only directed at the class files, but it's not a bad idea to leave it out of any script/class you write that have no HTML or other content. Its because if you leave it in, it's quite easy to accidentally add some white space to the end of the file, and this will then be output with your content. Generally not a problem for HTML pages, but could easily break something like binary file output. If you leave it out there is no chance of white space being output, and PHP does not require it.

Vinny wrote:
After going through the docs I realized that the examples with no end ?>
was not a typo. Is that for every php script that uses in the framework or
just the framework classes? Will something bad happen if you do use '?>'
? How did that design decision come about?

--
Ghetto Java: http://www.streetprogrammer.com

--
Jack

Reply via email to