You are here: Re: warning header("Location: file.php") « All PHP « IT news, forums, messages
Re: warning header("Location: file.php")

Posted by David on 07/16/06 17:40

On Sun, 16 Jul 2006 14:51:00 +0200, Cujo <fra@despammed.com> wrote:

>Shearer wrote:
>
>> Why if I use warning header("Location: file.php") i had this warning?
>> Warning: Cannot modify header information - headers already sent by
>
>1) NOTHING must be output BEFORE a header() call.
>
>2) I believe header('Location: URL') wants a complete absolute URL.
> ie: http://www.example.com/file.php.

The URL simply needs to be valid. You can do something like:
header("Location:index.html");. It will treat the link as localhost.

>f.

David

 

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

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