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]
|