Re: POLL: To add the final ?> or not...

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

 



On Thu, 2010-01-14 at 23:37 +0100, Kim Madsen wrote:

> Ashley Sheridan wrote on 14/01/2010 23:30:
> 
> >> What is the difference between:
> >>
> >> <?
> >> print "hello PHPeople";
> >> ?>WHITESPACE
> >>
> >> and
> >>
> >> <?
> >> print "hello PHPeople";
> >> WHITESPACE
> >>
> >> Same shit when I look at it, a sloppy developer is what it is :-)
> >>
> >> -- 
> >> Kind regards
> >> Kim Emax - masterminds.dk
> >>
> > 
> > Plenty of differences, if you include the first one as a file, the 
> > whitespace gets sent to the browser because it is not part of the PHP, 
> > and so is assumed to be HTML. Once this happens, the headers have been 
> > sent, so you can't use different headers in your script.
> 
> Hmm... you could be right. I guess I just never made that mistake :-)
> -- 
> Kind regards
> Kim Emax - masterminds.dk
> 


What has been said on this thread a few times is it is not always a
developer error, but a bug with the editor, which is not something that
will be picked up until it occurs.

Thanks,
Ash
http://www.ashleysheridan.co.uk



[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