You are here: Re: Warning Messages Using Session Control « PHP Programming Language « IT news, forums, messages
Re: Warning Messages Using Session Control

Posted by ZeldorBlat on 09/15/05 09:02

Once output has been sent to the browser headers cannot be sent.
Sending headers is how cookies are set (like session cookies), so you
get the errors described.

Somewhere in your script before session_start() you're sending output
to the browser. In fact, the error message even tells you the file and
line number where the output was sent (although in your post you cut
that part out).

Check the code listed in the error message. Even sending a single
blank space counts. You can ensure that no output is sent before
calling session_start() by using ob_start() and ob_flush() -- although
the correct solution is to probably rearrange your script so
session_start() gets called earlier on.

 

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

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