Bug #788 Updated: SetCookie will not work with whitespace leading the <SCRIPT language=
| From: | Bug Database | Date: | Fri, 25 Sep 1998 19:09:24 +0000 |
| Subject: | Bug #788 Updated: SetCookie will not work with whitespace leading the <SCRIPT language= | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-1506@lists.php.net to get a copy of this message | ||
ID: 788
Updated by: zeev
Reported By: mavpion@usa.net
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@lists.php.net
For help: php-dev-help@lists.php.net