You are here: Re: Sessions « PHP Language « IT news, forums, messages
Re: Sessions

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация