You are here: Re: Problem - sessions « PHP Programming Language « IT news, forums, messages
Re: Problem - sessions

Posted by Tim Van Wassenhove on 01/19/06 04:33

On 2006-01-18, Tomasz Nowak <nospam@op.pl> wrote:
> "Warning: session_start(): Cannot send session cache limiter - headers
> already sent (output started at c:\usr\krasnal\www\an\edycja.php:8) in
> c:\usr\krasnal\www\an\edycja.php on line 11"

It's one of the most frequent problems and a little websearch for "headers
already sent" will return more than enough good solutions.

a-) As the error message suggests, make sure there is no output before you call
session_start or header. Usually, this happens because there is some whitespace
before the <? where the php code starts.

b-) Use outputbuffering. http://www.php.net/ob. Notice that this does not buffer
headers.


--
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>

 

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

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