Re: [PHP] Redirect not working on server

2009-06-03 Thread Ashley Sheridan
On Tue, 2009-06-02 at 20:43 -0700, revDAVE wrote: > Thank you Jay - Shawn & Paul for helping this newbie! > > > -- > Thanks - RevDave > Cool @ hosting4days . com > [db-lists 09] > > > > Also, according to the spec, the URL should be in absolute form, not relative like you have there. Ash ww

Re: [PHP] Redirect not working on server

2009-06-02 Thread revDAVE
Thank you Jay - Shawn & Paul for helping this newbie! -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect not working on server

2009-06-02 Thread Paul M Foster
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

Re: [PHP] Redirect not working on server

2009-06-02 Thread Shawn McKenzie
revDAVE wrote: > I found the answer here - I had --- whitespace & ... if > Location: http://www.phpbuilder.com/board/showthread.php?t=10310794 > > Blank space above the php tag or below the final php tag > It is not intuitive but ... > > if can cause problems such as the php header function no

Re: [PHP] Redirect not working on server

2009-06-02 Thread revDAVE
I found the answer here - I had --- whitespace & ... if http://www.phpbuilder.com/board/showthread.php?t=10310794 Blank space above the php tag or below the final php tag It is not intuitive but ... if http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect not working on server

2009-06-02 Thread revDAVE
On 6/2/2009 12:41 PM, "revDAVE" 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 >> >>

Re: [PHP] Redirect not working on server

2009-06-02 Thread revDAVE
On 6/2/2009 12:04 PM, "Jay Blanchard" 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

RE: [PHP] Redirect not working on server

2009-06-02 Thread Jay Blanchard
[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

[PHP] Redirect not working on server

2009-06-02 Thread revDAVE
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 - ma