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

[PHP] RSS Standardness

2012-04-03 Thread shiplu
Dealing RSS Version. I am going to write an RSS parser. Its a very simple parser which just grabs the latest items date and title. SimpleXML and DomDocument is my friend here. The problem here is there are too many standards for RSS. RSS 2.0, 0.92 and 0.91. What do you think which version should I

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

[PHP] learning resources for PHP

2012-04-03 Thread Tim Dunphy
Hello list,  I am quite sure that you've heard this question at least a few times before. :) But I have been dabbling a bit in PHP for years and I've decided that its' high time that became serious about getting a solid grounding in it. Currently I work as a Sysadmin and have modest but reliable s

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

2012-04-03 Thread Ross McKay
On Tue, 3 Apr 2012 17:29:33 -0400, Tedd Sperling wrote: >[...] >Does anyone have more examples of where scripts will fail >IF they end with "?> " (note the additional space)? +1 on everyone's call to omit on an included file due to the potential for sending headers. >[... rearranged for ease of

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

[PHP] To ?> or not to ?>

2012-04-03 Thread Tedd Sperling
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 desired result even after they were given the scr

Re: [PHP] Node.PHP

2012-04-03 Thread Joseph Moniz
*bad link in last post http://luvit.io/ -Joseph Moniz On Tue, Apr 3, 2012 at 12:16 PM, Joseph Moniz wrote: > On Fri, Mar 30, 2012 at 5:56 PM, German Geek wrote: >> Maybe stupid question, but is node.php really necessary? If you can program >> PHP and it performs better than node.js, why wou

Re: [PHP] Node.PHP

2012-04-03 Thread Joseph Moniz
On Fri, Mar 30, 2012 at 5:56 PM, German Geek wrote: > Maybe stupid question, but is node.php really necessary? If you can program > PHP and it performs better than node.js, why would you need to have another > wrapper around things. Why not just program "normal" PHP? This is normal PHP in the sam

[PHP] Re: learning resources for PHP

2012-04-03 Thread Daniel Brown
On Mon, Apr 2, 2012 at 23:53, Tim Dunphy wrote: > Hello list, > >  I am quite sure that you've heard this question at least a few times > before. :) But I have been dabbling a bit in PHP for years and I've > decided that its' high time that became serious about getting a solid > grounding in it. C