Re: PHP Enclosing Tags? Do You Close Your PHP Declarations?
| From: | Edmund Hertle | Date: | Fri, 30 Jan 2009 20:50:32 +0000 |
| Subject: | Re: PHP Enclosing Tags? Do You Close Your PHP Declarations? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287450@lists.php.net to get a copy of this message | ||
2009/1/30 Eric Butera <eric.butera@gmail.com>
> On Fri, Jan 30, 2009 at 1:45 PM, Nitsan Bin-Nun <nitsan@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 will beneath them
> it
> > will cause
> > problems with output buffering and session handling.
> >
> > Do you close your PHP <?php tags?
> >
> > (at least I closed them here :P look down)
> > --
> > ?>
> > Nitsan Bin-Nun
> > Web Applications Developer
> > nitsan@binnun.co.il
> > 972-52-5722039
> >
>
> 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 reasons you stated.
What is the problem in session handling? I think I came never across this
issue altough I do close my tags...