Re: [PHP] What is "white space"

2003-11-15 Thread Gerard Samuel
On Saturday 15 November 2003 08:22 pm, Chris Shiflett wrote: > 1. When a closing PHP tag, such as ?>, is followed by a newline, the > newline is not output. Im the original author to this thread, and this is an attempt to bring back this thread to square one, as it was straying in other directio

Re: [PHP] What is "white space"

2003-11-15 Thread Chris Shiflett
--- Keith Greene <[EMAIL PROTECTED]> wrote: > It's not a bug. Anything (including spaces, newlines etc) that is not > inside is output directly to the browser. There are two different things being discussed, and I'm not positive which is considered a bug. 1. When a closing PHP tag, such as ?>,

Re: [PHP] What is "white space"

2003-11-15 Thread Leif K-Brooks
Keith Greene wrote: Ok, you're getting into semantics now. http://www.php.net/manual/en/language.basic-syntax.php doesn't say whether it is acceptable or not, but as Robert pointed out, if your script is purely php, omitting it is a good way of eliminating the headache of trailing white spaces

Re: [PHP] What is "white space"

2003-11-15 Thread Keith Greene
Ok, you're getting into semantics now. http://www.php.net/manual/en/language.basic-syntax.php doesn't say whether it is acceptable or not, but as Robert pointed out, if your script is purely php, omitting it is a good way of eliminating the headache of trailing white spaces that may interfere w

Re: [PHP] What is "white space"

2003-11-15 Thread Leif K-Brooks
Keith Greene wrote: That's not a bug either. Leaving out the ?> is simply telling the php parser that it has to parse the rest of the script. Where's the manual page saying that's allowed? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will

Re: [PHP] What is "white space"

2003-11-15 Thread Leif K-Brooks
Keith Greene wrote: It's not a bug. Anything (including spaces, newlines etc) that is not inside is output directly to the browser. No, I'm talking about not using ?>. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to th

Re: [PHP] What is "white space"

2003-11-15 Thread Keith Greene
Yep. It allows you to only use php where needed, and use HTML for the rest. At 04:02 PM 11/15/2003, you wrote: On Sat, 2003-11-15 at 18:49, Leif K-Brooks wrote: > Robert Cummings wrote: > > >FYI, if you're woprried about the "header cannot be sent due to > >output..." error, then if your file only

Re: [PHP] What is "white space"

2003-11-15 Thread Robert Cummings
On Sat, 2003-11-15 at 18:49, Leif K-Brooks wrote: > Robert Cummings wrote: > > >FYI, if you're woprried about the "header cannot be sent due to > >output..." error, then if your file only has code and no HTML, then you > >can omit the ?> tag at the end of your script. This solves countless > >issu

Re: [PHP] What is "white space"

2003-11-15 Thread Keith Greene
It's not a bug. Anything (including spaces, newlines etc) that is not inside is output directly to the browser. At 03:49 PM 11/15/2003, you wrote: Robert Cummings wrote: FYI, if you're woprried about the "header cannot be sent due to output..." error, then if your file only has code and no HTML

Re: [PHP] What is "white space"

2003-11-15 Thread Leif K-Brooks
Robert Cummings wrote: FYI, if you're woprried about the "header cannot be sent due to output..." error, then if your file only has code and no HTML, then you can omit the ?> tag at the end of your script. This solves countless issues with there being a space, a tab, a newline, or any whitespace a

Re: [PHP] What is "white space"

2003-11-15 Thread Robert Cummings
On Sat, 2003-11-15 at 12:12, Chris Shiflett wrote: > --- Gerard Samuel <[EMAIL PROTECTED]> wrote: > > Most of the time, I edit files via the command line, (FBSD). When > > the files are saved, it adds a \n (newline) character (at least I > > believe that is what it is) after the closing ?> When vie

Re: [PHP] What is "white space"

2003-11-15 Thread Chris Shiflett
--- Gerard Samuel <[EMAIL PROTECTED]> wrote: > Most of the time, I edit files via the command line, (FBSD). When > the files are saved, it adds a \n (newline) character (at least I > believe that is what it is) after the closing ?> When viewing these > files in a windows GUI editor, there is an ext

[PHP] What is "white space"

2003-11-15 Thread Gerard Samuel
Most of the time, I edit files via the command line, (FBSD). When the files are saved, it adds a \n (newline) character (at least I believe that is what it is) after the closing ?> When viewing these files in a windows GUI editor, there is an extra line after the ?> closing tag. Using the php func