Re: register_globals setting

From: Date: Thu, 04 Jan 2001 15:25:29 +0000
Subject: Re: register_globals setting
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-32644@lists.php.net to get a copy of this message
AFAIK that should not be the case, you just can't _output_ anything (including other headers, because a cookie must be the first header for a resource... IIRC). However: no error message? what about error related settings? do you have display_errors on, and error_reporting E_ALL (just in case)? what if you try setcookie("ssn", $HTTP_GET_VARS['pu_ssn'], time() + (60 * 60 * 24 * 30)); ? At 16:17 4.1. 2001, Todd Cary wrote the following: -------------------------------------------------------------- >Cynic - > >If I put this at the top of a page where the value of pu_ssn is passed >as either a GET or POST, the Cookie is not set. > ><? > $pu_ssn = $HTTP_GET_VARS[pu_ssn]; > setcookie("ssn", $pu_ssn, time() + (60 * 60 * 24 * 30)); >?> > >I believe that is caused by the fact that there cannot be any PHP code >before the "setcookie". > >Todd > >-- >Todd Cary >Ariste Software >todd@aristesoftware.com ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. cynic@mail.cz

« previous php.general (#32644) next »