Date: 09/25/98
- Next message: Joel Caesar: "[PHP-DEV] Re: Bug #780 Updated: Failure to compile basic_functions.c on SGI IRIX"
- Previous message: Bug Database: "[PHP-DEV] Bug #780 Updated: Failure to compile basic_functions.c on SGI IRIX"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: mavpion <email protected>
Operating system: Linux
PHP version: 3.0.4
PHP Bug Type: Performance problem
Bug description: SetCookie will not work with whitespace leading the <SCRIPT language="php"> tag
this script:
<SCRIPT language="php">
SetCookie("TestCookie","foobar");
</Script>
Produces the error:
Oops, php3_SetCookie called after header has been sent
whereas this script:
<SCRIPT language="php">
SetCookie("TestCookie","foobar");
</Script>
works.
Apparently the leading whitespace causes a header to be sent, making the cookie not work. Can you change this behavior? I am in the habit of right justifying the <script> tag, but if I want to use cookies, I must left justify it.
Thanks
--Eric Guenterberg
-- 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>
- Next message: Joel Caesar: "[PHP-DEV] Re: Bug #780 Updated: Failure to compile basic_functions.c on SGI IRIX"
- Previous message: Bug Database: "[PHP-DEV] Bug #780 Updated: Failure to compile basic_functions.c on SGI IRIX"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

