You are here: Re: What's wrong with header = ('location: pagename.php') ? « PHP Programming Language « IT news, forums, messages
Re: What's wrong with header = ('location: pagename.php') ?

Posted by C. (http://symcbean.blogspot.com/) on 10/04/07 12:01

On 4 Oct, 07:51, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
> On Thu, 04 Oct 2007 08:45:30 +0200, cel...@gmail.com <cel...@gmail.com>
> wrote:
>
> > just write
> > header ('location: index.php');
> > instead of
> > header = ('location: index.php');
>
> > header is a function not a variable. dont get confused with the
> > $headers variable you used. They are tottally different.
>
> Actually it should be:
> header ('Location:http://www.example.com/index.php');
>
> Allthough by the grace of UA's they normally use the current domain, this
> is not in the specs.
> --
> Rik Wasmus

Actually it should be a 307 redirect (which needs to be explicitly
set)- not a 302 (default for Location: header).

C.

 

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

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