|
Posted by Rik on 01/25/07 15:40
On Thu, 25 Jan 2007 16:33:17 +0100, wombat <64@k.com> wrote:
> I'll hafta give those a try and see what happens. As far as the base
> just being "/", if I remember correctly some time ago I was told that I
> should be using "http://......".. especially when using "header".
Well, I'd say the only time I use http:// is when I use a
header('Location:...');, the rest could and should for maintainability
just be relative to either the domain or the current directoty.
And building a header redirect with the correct host would still be a
simple:
header('Location: http://'.$_SERVER['HTTP_HOST'].'/path/to/the/target');
So it'll be automatically correct for all (sub)domains.
--
Rik Wasmus
* I'm testing several new newsreaders at the moment. Please excuse
possible errors and weird content. *
Navigation:
[Reply to this message]
|