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]
|