[PHP-DEV] Bug #788 Updated: SetCookie will not work with whitespace leading the <SCRIPT language= From: Bug Database (php-dev <email protected>)
Date: 09/25/98

ID: 788
Updated by: zeev
Reported By: mavpion <email protected>
Status: Closed
Bug Type: Performance problem
Assigned To:
Comments:

Anything outside PHP code blocks is considered as raw HTML,
and is sent as-is, untouched by the language engine. PHP
makes no distinction between whitespace and text, and that's
why your tab, or series of spaces, is considered an HTML
block which triggers the sending of the HTTP header. This
behavior will not change in PHP 3.0.

In PHP 3.1, there'll be an optional switch to buffer all
output, and only send the HTTP header after the entire
file is parsed, so you'd be able to add in header information,
such as HTTP cookies, even after you output HTML. Version
3.1 is still way off though.

Full Bug description available at: http://ca.php.net/bugs.php3?id=788

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>