You are here: Re: Cannot modify header information - headers already sent by « All PHP « IT news, forums, messages
Re: Cannot modify header information - headers already sent by

Posted by J Huntley Palmer on 05/15/06 22:20

Gordon! Thank you! It was white space after the ?>.
It solved the problem.


Gordon Burditt wrote:
>> Cannot modify header information - headers already sent by
>>
>> when I issue a
>> header ("Location: http://www.foobar.com");
>
> Move everything that outputs text to *AFTER* the header() call
> (or just delete it, as the text won't be seen anyway).
>
> This includes:
>
> - A blank line outside <?php ... ?>
> - A blank line in an include file outside <?php ?>, especially
> at the start or end of the file.
> - A space or tab outside <?php ... ?>
> - Invisible unicode characters inserted by an editor before <?php
> - Warning or error messages output by anything you call before
> header().
> - <!DOCTYPE declarations
> - html
>
>> How can I redirect the user to such a site without encountering this error.
>
> If it tells you where the output started, look there and delete the
> offending text. It is likely white space of some sort.
>
> Gordon L. Burditt

 

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

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