Re: header() confusion

From: Date: Wed, 26 Sep 2001 12:43:00 +0000
Subject: Re: header() confusion
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68844@lists.php.net to get a copy of this message
<Original message> From: pierre-yves <pylem@sympatico.ca> 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> -- * R&zE: -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze@datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

« previous php.general (#68844) next »