RE: [PHP3] Setcookie problem From: Brian Schaffner (BSchaffner <email protected>)
Date: 09/30/98

check to make sure that all of your PHP files have no spaces before <?
nor after ?>
what often happens is that a file has a new line after ?>, which PHP
sends to the browser,
and before it can send it, it has to send the header.

-brian-

-----Original Message-----
From: Geoffrey Makstutis [mailto:gmak <email protected>]
Sent: Wednesday, September 30, 1998 12:44 PM
To: php3 <email protected>
Subject: [PHP3] Setcookie problem

I have a function which checks for a cookie and then either redirects or
sets the cookie. I keep getting the following:

Warning: Oops, php3_SetCookie called after header has been sent...

What I can't understand is that the php file which does the work,
doesn't
write to the browser until after it has done it's cookie work. Actually,
it
is a series of functions that are called from other pages. So, what is
the
header that is being sent?

Thanks,
Geoffrey Makstutis
gmak <email protected>

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:
http://www.php.net/mailsearch.php3

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3