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
[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
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
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
4 matches
Mail list logo