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

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

 



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

--
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