Re: setcookie command
| From: | Greg Donald | Date: | Mon, 24 Jan 2005 15:32:31 +0000 |
| Subject: | Re: setcookie command | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207124@lists.php.net to get a copy of this message | ||
On Mon, 24 Jan 2005 07:24:19 -0800 (PST), Reza Milan
<rezamilanx@yahoo.com> wrote:
> Dear sir,
>
> When I use setcookie command I recieve the following message error:
>
> Warning: Cannot modify header information - headers already sent by (output started at
> C:\Inetpub\wwwroot\test.php:9) in C:\Inetpub\wwwroot\test.php on line 15
Do not set cookies after you have ouput anything, set them before. Or
use the output buffering functions.
--
Greg Donald
Zend Certified Engineer
http://destiney.com/