Re: [PHP] To ?> or not to ?>

2012-04-05 Thread Donovan Brooke
Larry Garfield wrote: [snip] Donovan Most major projects at this point leave it off, and their coding standards say to as well. The official PHP docs are generally non-commital by design, but outside of those I think it's pretty well-established to just leave it off and be happy. --Larry Garfi

Re: [PHP] To ?> or not to ?>

2012-04-05 Thread Larry Garfield
On 4/4/12 12:14 AM, Donovan Brooke wrote: Robert Cummings wrote: [snip] Could using ob_start and ob_end_flush eliminate the ambiguity of whether or not to use '?>'? In the generally recommended case of don't use them at the end of your file... where's the ambiguity? http://www.php.net/manua

Re: [PHP] To ?> or not to ?>

2012-04-04 Thread Lester Caine
Robert Cummings wrote: I'm not alone then :) But I prefer EVERY tag to be closed ... perhaps that would change if the IDE's faked a closing tag when it's missing so they don't get flagged as an error :( IDE? Get off my lawn!! ;) I develop in JOE. But that does not provide any of the VCS/DVC

Re: [PHP] To ?> or not to ?>

2012-04-04 Thread Robert Cummings
On 12-04-04 04:40 PM, Lester Caine wrote: ( forget email addres :( ) Robert Cummings wrote: On 12-04-04 02:42 PM, Lester Caine wrote: Tedd Sperling wrote: Let me start a religious war -- should one end their scripts with "?>" or not? Just as long as no one proposes making leaving out compuls

Re: [PHP] To ?> or not to ?>

2012-04-04 Thread Lester Caine
( forget email addres :( ) Robert Cummings wrote: On 12-04-04 02:42 PM, Lester Caine wrote: Tedd Sperling wrote: Let me start a religious war -- should one end their scripts with "?>" or not? Just as long as no one proposes making leaving out compulsory ;) While I can sort of understand the

Re: [PHP] To ?> or not to ?>

2012-04-04 Thread Robert Cummings
On 12-04-04 02:42 PM, Lester Caine wrote: Tedd Sperling wrote: Let me start a religious war -- should one end their scripts with "?>" or not? Just as long as no one proposes making leaving out compulsory ;) While I can sort of understand the logic when the file is all php and just has an open

Re: [PHP] To ?> or not to ?>

2012-04-04 Thread Lester Caine
Tedd Sperling wrote: Let me start a religious war -- should one end their scripts with "?>" or not? Just as long as no one proposes making leaving out compulsory ;) While I can sort of understand the logic when the file is all php and just has an opening closing tags AND using totally wrong?

Re: [PHP] To ?> or not to ?>

2012-04-03 Thread Robert Cummings
On 12-04-04 01:14 AM, Donovan Brooke wrote: Robert Cummings wrote: [snip] Could using ob_start and ob_end_flush eliminate the ambiguity of whether or not to use '?>'? In the generally recommended case of don't use them at the end of your file... where's the ambiguity? http://www.php.net/man

Re: [PHP] To ?> or not to ?>

2012-04-03 Thread shiplu
I keep my closing tag. Earlier I started removing closing tag. Then I search for the standardness of this practice and found its not standard. Some frameworks/cms intentionally do this. Besides a signle `\n` character is allowed after the closing tag which does not cause "Can not send Header" error

Re: [PHP] To ?> or not to ?>

2012-04-03 Thread Donovan Brooke
Robert Cummings wrote: [snip] Could using ob_start and ob_end_flush eliminate the ambiguity of whether or not to use '?>'? In the generally recommended case of don't use them at the end of your file... where's the ambiguity? http://www.php.net/manual/en/function.include.php http://www.php.n

Re: [PHP] To ?> or not to ?>

2012-04-03 Thread Robert Cummings
On 12-04-03 11:39 PM, Donovan Brooke wrote: Stuart Dallas wrote: [snip] Usually when setting headers after such a script has been included when output buffering is turned off. Personally I never put the closing ?> in if it's at the end of the file because it's unnecessary and can cause issue

Re: [PHP] To ?> or not to ?>

2012-04-03 Thread Donovan Brooke
Stuart Dallas wrote: [snip] Usually when setting headers after such a script has been included when output buffering is turned off. Personally I never put the closing ?> in if it's at the end of the file because it's unnecessary and can cause issues if it's present, but it's personal preferen

Re: [PHP] To ?> or not to ?>

2012-04-03 Thread Joshua Kehn
I leave them off of any non-view PHP file. It doesn't have any downsides, and leaving them in can cause problems. Just like short tags! Regards, –Josh Joshua Kehn | @joshkehn http://joshuakehn.com On Apr 3, 2012, at 5:29 PM, Tedd Sperling wrote: > Hi gang

Re: [PHP] To ?> or not to ?>

2012-04-03 Thread Robert Cummings
On 12-04-03 05:29 PM, Tedd Sperling wrote: Hi gang: Let me start a religious war -- should one end their scripts with "?>" or not? After years of never having a problem with ending any of my scripts with "?>", I found that several students in my class had scripts that did not produce the desi

Re: [PHP] To ?> or not to ?>

2012-04-03 Thread Mari Masuda
On Apr 3, 2012, at 2:29 PM, Tedd Sperling wrote: > Hi gang: > > Let me start a religious war -- should one end their scripts with "?>" or not? > > After years of never having a problem with ending any of my scripts with > "?>", I found that several students in my class had scripts that did not

Re: [PHP] To ?> or not to ?>

2012-04-03 Thread Stuart Dallas
On 3 Apr 2012, at 22:29, Tedd Sperling wrote: > Let me start a religious war -- should one end their scripts with "?>" or not? > > After years of never having a problem with ending any of my scripts with > "?>", I found that several students in my class had scripts that did not > produce the de