NYCPHP Meetup

NYPHP.org

[nycphp-talk] Closing Tags or Not Closing Tags, that is my question...

David Krings ramons at gmx.net
Tue Dec 18 14:00:09 EST 2007


John Campbell wrote:
> David,
> 
> This does not apply to files that mix php and html.  This is for php
> only files, such as classes, or config files.   If your application
> separates the presentation logic from the application logic, you will
> have lots of files that are pure php and this prevents those scripts
>>from inadvertently sending output to the browser.

I do use scripts that do not output anything, but I usually run a browser 
redirect within the code once done and before the closing tag, so I guess it 
wouldn't matter in my case as the bogus content would come after the redirect 
and it also doesn't matter once content is sent. I don't think I have any 
scripts so far that would cause this problem, but good to know that this issue 
exists.

David



More information about the talk mailing list
Automatic Email Organization without missing anything!