You are here: Re: [PHP] header already sent problem « PHP « IT news, forums, messages
Re: [PHP] header already sent problem

Posted by AndreaD on 03/25/05 21:42

It's not a header it is a setcookie, how do I arrange the code so the
cookies are set before the header is set? At what point in the HTML are the
headers sent.


R.
"Ken" <kenkam@gmail.com> wrote in message
news:827f7534050325092159db3f64@mail.gmail.com...
> On Fri, 25 Mar 2005 15:03:45 -0000, AndreaD
> <andrea.davidson@silene.co.uk> wrote:
>> is there an alternative way to suppress the headers already sent problem?
>> Ob_start/flush is not very neat way to so this.
>>
>> AD
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> you can set
>
> output_buffering = 4096;
>
> or some value you want in your php.ini file.
>
> Alternatively try to rearrange your code to make sure that you put all
> your header() commands BEFORE anything is sent to the browser. Many
> CMS out there don't use OB as their code are well written so that
> anything to do with header() is before data sent to browser.
>
> HTH

 

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

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