headers and cookies

From: Date: Tue, 29 Oct 2002 20:26:03 +0000
Subject: headers and cookies
Groups: php.general 
Request: Send a blank email to php-general+get-121941@lists.php.net to get a copy of this message
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 consecutive calls for header and cookie? I know that all headers must be sent before other output but what is the catch here? -- Rolf Vreijdenberger

« previous php.general (#121941) next »