Re: [PHP] header() confusion
Original message From: pierre-yves [EMAIL PROTECTED] Date: Wed, Sep 26, 2001 at 08:41:24AM -0400 Message-ID: 007301c14688$8d9b0d10$0100a8c0@py Subject: [PHP] header() confusion Hello, several months ago I discovered that under some IE 4.0 and upgrades of 4.0 the header() function would simply not redirect if you don't put exit() right after the header() call. Now I'm discovering that header() does not work under netscape 6 if you put exit() right after! How come this function is so dependant of the client? How can I avoid all this mess? Has anyone experience this? py /Original message Reply It's not dependent on the client. The script just simply doesn't stop after header(). It's just a bit strange that it worked with some other browsers. Everything after header() will just be executed until: - an error occurs - the script reaches the end - exit; So... when redirecting the user to a different page, you should always put exit after the header() call. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] header() confusion
So... when redirecting the user to a different page, you should always put exit after the header() call. Yes that's what I do but it freeze on netscape 6 ? Does anyone has experience this or am I the only one ? py -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] header() confusion
Yes that's what I do but it freeze on netscape 6 ? FAFAIK the client's browser can't influence the header() call in your script. Are you sure there aren't any errors somewhere else. Eg before the header() call or at the start of the page where you redirect the user to? -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] header() confusion
Yes that's what I do but it freeze on netscape 6 ? FAFAIK the client's browser can't influence the header() call in your script. Are you sure there aren't any errors somewhere else. Eg before the header() call or at the start of the page where you redirect the user to? Indeed. A good way to tell if this might be the case is to view the source of the page you get stuck at. Chris
Re: [PHP] header() confusion
Yes that's what I do but it freeze on netscape 6 ? FAFAIK the client's browser can't influence the header() call in your script. Are you sure there aren't any errors somewhere else. Eg before the header() call or at the start of the page where you redirect the user to? Indeed. A good way to tell if this might be the case is to view the source of the page you get stuck at. Yep! Or set the error-reporting-level to eg 2047 and check the logfile(s). -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]