[PHP] headers and cookies

2002-10-29 Thread rolf vreijdenberger
I have one more than one occasion run into the problem of headers already sent when I was using the header function in combination with cookies. What is the right way of doing it? ?php header ( your thinggies here); setcookie(blabal); or the other way round? can I do php routines between these

RE: [PHP] headers and cookies

2002-10-29 Thread Jay Blanchard
[snip] I have one more than one occasion run into the problem of headers already sent when I was using the header function in combination with cookies. What is the right way of doing it? ?php header ( your thinggies here); setcookie(blabal); or the other way round? can I do php routines between

Re: [PHP] headers and cookies

2002-10-29 Thread Rolf Vreijdenberger
thanks, I already thought so I'll check it out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] headers and cookies

2002-10-29 Thread Chris Shiflett
This is not correct. Both the setcookie() and header() functions manipulate the HTTP headers in the response. You cannot have output prior to any function that manipulates headers - that's the limitation. These two functions work fine together in any order; it's prior output that will cause an