Bug #788: SetCookie will not work with whitespace leading the <SCRIPT language="php"> tag

From: Date: Fri, 25 Sep 1998 18:58:30 +0000
Subject: Bug #788: SetCookie will not work with whitespace leading the <SCRIPT language="php"> tag
Groups: php.dev 
Request: Send a blank email to php-dev+get-1504@lists.php.net to get a copy of this message
From: mavpion@usa.net Operating system: Linux PHP version: 3.0.4 PHP Bug Type: Performance problem Bug description: SetCookie will not work with whitespace leading the &lt;SCRIPT language="php"&gt; 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@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#1504) next »