This is a discussion on Re: [PHP] session header issue within the PHP General forums, part of the PHP Programming Forums category; I usually included a global variable prefixed to the page, like such.. header("Location: $ssl_server/mypage.php"); or ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I usually included a global variable prefixed to the page, like such..
header("Location: $ssl_server/mypage.php"); or header("Location: $server/mypage.php"); and a myserversetting.php setting these. Now, I can globally change the servers by editing one file. Chris Shiflett wrote: >--- Sam Folk-Williams <sfolkwilliams@mn.rr.com> wrote: > > >>>The Location: header requires a correctly formed URL >>> >>> >>It works fine having Location: main.php >> >> > >That doesn't justify it. This is no different than writing screwed up HTML >tables that happen to appear as you want in the browser you're testing with. >You never know when your broken code is going to cause problems somewhere, and >you've no one to blame but yourself when they do. > >It's much better for everyone just to do things the right way. The Location >header should be an absolute URL. > >Chris > >===== >Become a better Web developer with the HTTP Developer's Handbook >http://httphandbook.org/ > > > |