Re: Redirect not working on server

From: Date: Tue, 02 Jun 2009 19:41:06 +0000
Subject: Re: Redirect not working on server
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-293504@lists.php.net to get a copy of this message
On 6/2/2009 12:04 PM, "Jay Blanchard" <jblanchard@pocket.com> wrote: > [snip] > 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? > [/snip] > > The first thing that you will want to do is > > echo $_SESSION['id']; > echo $_SESSION['cat']; > > To see if they contain anything THANK YOU JAY, BTW: I'm a newbie They seem to be fine - and have proper content I added this: error_reporting(E_ALL); If I put this on a page isn't it supposed to override other server setting and display errors? It's not - This the page is blank - except for the echo test BTW: I found out that Php on server is v5.1.2 -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09]

« previous php.general (#293504) next »