Re: Redirect not working on server

From: Date: Wed, 03 Jun 2009 01:31:37 +0000
Subject: Re: Redirect not working on server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-293519@lists.php.net to get a copy of this message
On Tue, Jun 02, 2009 at 11:50:55AM -0700, revDAVE wrote: > I have this line at the end of 1 big php block... > > header('Location: mypage.php?id=' . > $_SESSION['id'].'&cat='.$_SESSION['cat']); > > It works fine on my dev. Testing server but does not forward on the actual > website.... > > Any way to fix this? > > ---- > > Home is php 5 > > Server (not sure) might not be 5 - maybe v4 > > Could that be the problem? > If I ever have a redirect like this, I *always* put after it: exit(); which ensures it will not do anything else. Paul -- Paul M. Foster

« previous php.general (#293519) next »