Re: headers and newline at end of script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-07-20 at 11:30, John Nichel wrote:
> Jochem Maas wrote:
> > Martin Marques wrote:
> >> I'm looking for an opinion on programming style.
> >>
> >> Basicaly, I make systems using PEAR::DB and PEAR::HTML_Template_IT. This
> >> last one puts all the HTML away from the PHP code, which has made life
> >> much easier.
> >>
> >> Now, sometimes I warning messages like this one:
> >>
> >> PHP Warning:  Cannot modify header information - headers already sent in
> >>
> >> I know what it means, so I just look for newlines at the end of my PHP
> >> scripts, especially after the closing ?> and delete them.
> >>
> >> Now, my question is: Is it a bad practice to "NOT" close the script with
> >> the PHP closing "?>"? I mean, just leave the script without a closing
> >> PHP simbols, as this scripts are included?
> > 
> > I never add the final closing '?>' in any script for this very reason.
> > 
> 
> 'Cause you're a SLACKER!!!

Some of the best coders are slackers... because they find better ways to
code to prevent having to write so much code :) But to answer the
question...

http://marc.theaimsgroup.com/?l=php-dev&m=106896286829744&w=2
http://marc.theaimsgroup.com/?l=php-dev&m=106896382030183&w=2

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux