Re: Help! Can't set cookie or redirect!!!

From: Date: Sun, 29 Sep 2002 01:19:38 +0000
Subject: Re: Help! Can't set cookie or redirect!!!
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-118027@lists.php.net to get a copy of this message
Phil Powell wrote:
Ok thanx.. yeah I knew that you can set a cookie before anything is set to the browser, however, if you view my code, nothing is sent as output before the cookie is set.
Yes, there is. Look at the following line in your code:
phpinfo();
That comes prior to the setcookie() and header() functions, both of which manipulate HTTP headers. Chris

« previous php.general (#118027) next »