Joey Garcia <[EMAIL PROTECTED]> said:
> Warning: Cannot add header information - headers already sent by (output
> started at c:\program files\apache group\apache\htdocs\class\cookie.php:2)
> in c:\program files\apache group\apache\htdocs\class\cookie.php on line 3
>
> <?php
> setcookie("myCookie","test",date("l, d-M-y H:i:s",
> (mktime()+1800)),"/","",0);
> ?>
>
If the failing header is at line 3, then your PHP code block starts at line
2. That means you have a blank line before it. That's output. And as you've
already learned, you can't send output before SetCookie() or header()...
adam
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]