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 <[EMAIL PROTECTED]> 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/






-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to