Re: problem with cookies

From: Date: Sun, 20 May 2001 07:35:28 +0000
Subject: Re: problem with cookies
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53591@lists.php.net to get a copy of this message
never mind, I solved the problem. -- ***** Peter Knif ***** petermk@concentric.net ""Peter Knif"" <petermk@concentric.net> wrote in message news:9e7ror$mp0$1@toye.p.sourceforge.net... > Hi! I'm trying to write a simple script that would set a cookie. I keep > receiving the following message: > > Warning: Cannot add header information - headers already sent by (output > started at e:\inetpub\wwwroot\PHP\game.php:85) in > e:\inetpub\wwwroot\PHP\game.php on line 87 > > Here's the code: > > 85 echo "showing results\n<BR>"; > 86 echo "Right answers = $right\n<BR>"; > 87 setcookie("cookie_value", $right, time()+3600); > > Could someone tell me what might cause this problem? Thanks. > > > -- > ***** Peter Knif ***** > > petermk@concentric.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#53591) next »