Re: Fw: [PHP] Re: headers and cookies

2002-10-30 Thread rolf vreijdenberger
what I found out in the meantime is that you CAN use cookies and headers, just like you said, but my particular problem arose because a notice was issued for an undefined variable; I didn't check correctly for it's existence. so any output, and also output like notices, warnings and errors,

Fw: [PHP] Re: headers and cookies

2002-10-29 Thread Kevin Stone
http://www.php.net/manual/en/function.setcookie.php And I quote, setcookie() defines a cookie to be sent along with the rest of the header information. Cookies must be sent before any other headers are sent (this is a restriction of cookies, not PHP).; If you absolutely must set cookies after you

Re: Fw: [PHP] Re: headers and cookies

2002-10-29 Thread Chris Shiflett
There is no such restriction of cookies. I think what the manual meant to say was that cookies must be sent prior to any output, which is the same restriction any other header has that you wish to set with the header() function, for example. I have forwarded this along to the documentation