Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-02-02 Thread Larry Garfield
On Mon, 2 Feb 2009 08:23:49 +0100, Yannick Mortier mvmort...@googlemail.com wrote: 2009/2/2 Alpár Török torokal...@gmail.com: 2009/2/1 Yannick Mortier mvmort...@googlemail.com I once read that this is even recommended by the PHP developers... Has anyone got a quote for me about this? I

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-02-01 Thread Yannick Mortier
2009/1/30 Nitsan Bin-Nun nit...@binnun.co.il: Do you close your PHP ?php tags? No, I don't. The reason is that I use subversion and I always get a message when I don't leave the last line empty. So I kind of have to leave the ?php Tag opened. I once read that this is even recommended by the PHP

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-02-01 Thread Alpár Török
2009/2/1 Yannick Mortier mvmort...@googlemail.com 2009/1/30 Nitsan Bin-Nun nit...@binnun.co.il: Do you close your PHP ?php tags? No, I don't. The reason is that I use subversion and I always get a message when I don't leave the last line empty. So I kind of have to leave the ?php Tag

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-02-01 Thread Yannick Mortier
2009/2/2 Alpár Török torokal...@gmail.com: 2009/2/1 Yannick Mortier mvmort...@googlemail.com I once read that this is even recommended by the PHP developers... Has anyone got a quote for me about this? I know thw ZF codinf style includes it as a must. See here :

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-31 Thread tedd
At 8:45 PM +0200 1/30/09, Nitsan Bin-Nun wrote: I was just wondering whether people enclosing their PHP tags declarations, I don't close these ?php tags just because the interpreter doesn't really needs them, and for the second reason - if a space/tab/new line/etc will beneath them it will cause

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-31 Thread Eric Butera
On Sat, Jan 31, 2009 at 10:10 AM, tedd tedd.sperl...@gmail.com wrote: My mother always told me to close the door. She wasn't a programmer, but it kept the chickens out. As a matter of habit, I always close all tags. However, I have yet to be bitten by the problem everyone speaks about (knock

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-31 Thread Nathan Rixham
Eric Butera wrote: On Sat, Jan 31, 2009 at 10:10 AM, tedd tedd.sperl...@gmail.com wrote: My mother always told me to close the door. She wasn't a programmer, but it kept the chickens out. As a matter of habit, I always close all tags. However, I have yet to be bitten by the problem everyone

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread Eric Butera
On Fri, Jan 30, 2009 at 1:45 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote: I was just wondering whether people enclosing their PHP tags declarations, I don't close these ?php tags just because the interpreter doesn't really needs them, and for the second reason - if a space/tab/new line/etc

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread Per Jessen
Nitsan Bin-Nun wrote: I was just wondering whether people enclosing their PHP tags declarations, I don't close these ?php tags just because the interpreter doesn't really needs them, and for the second reason - if a space/tab/new line/etc will beneath them it will cause problems with output

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread John Corry
Same here. They're just extraneous elements and can hide whitespace. I leave them open in all applcation files and close them only in templates. I only close tags inside templates. All of my logic code is outside of markup though so those files never have a closing ? for exactly the

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread Edmund Hertle
2009/1/30 Eric Butera eric.but...@gmail.com On Fri, Jan 30, 2009 at 1:45 PM, Nitsan Bin-Nun nit...@binnun.co.il wrote: I was just wondering whether people enclosing their PHP tags declarations, I don't close these ?php tags just because the interpreter doesn't really needs them, and

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread Eric Butera
On Fri, Jan 30, 2009 at 3:50 PM, Edmund Hertle edmund.her...@student.kit.edu wrote: What is the problem in session handling? I think I came never across this issue altough I do close my tags... If there's any rogue whitespace in your file, it's sent to the browser as the start of data. So if

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread mike
On Fri, Jan 30, 2009 at 12:50 PM, Edmund Hertle edmund.her...@student.kit.edu wrote: What is the problem in session handling? I think I came never across this issue altough I do close my tags... I think it depends if output buffering is on or not. If it is not enabled, these linebreaks/etc.

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread VamVan
On Fri, Jan 30, 2009 at 10:45 AM, Nitsan Bin-Nun nit...@binnun.co.ilwrote: I was just wondering whether people enclosing their PHP tags declarations, I don't close these ?php tags just because the interpreter doesn't really needs them, and for the second reason - if a space/tab/new line/etc