You are here: Re: session_start(): Cannot send session cache limiter - headers already sent « PHP Programming Language « IT news, forums, messages
Re: session_start(): Cannot send session cache limiter - headers already sent

Posted by Rik on 05/16/06 01:50

lawrence k wrote:
> I'm getting this warning:
>
> [15-May-2006 18:11:35] PHP Warning: session_start(): Cannot send
> session cache limiter - headers already sent in
>
/home/httpd/vhosts/monkeyclaus.org/httpdocs/media/audio/pdsIncludes/CommandS
tartSession.php
> on line 14

http://nl2.php.net/manual/en/function.session-start.php
Note: If you are using cookie-based sessions, you must call session_start()
before anything is outputted to the browser.

Comment of header() is also applicable:
http://nl2.php.net/manual/en/function.header.php
Remember that header() must be called before any actual output is sent,
either by normal HTML tags, blank lines in a file, or from PHP. It is a very
common error to read code with include(), or require(), functions, or
another file access function, and have spaces or empty lines that are output
before header() is called. The same problem exists when using a single
PHP/HTML file.

Grtz,
--
Rik Wasmus

 

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

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