Re: session error ... I think
| From: | Alexander Ross | Date: | Thu, 11 Jul 2002 16:10:07 +0000 |
| Subject: | Re: session error ... I think | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107170@lists.php.net to get a copy of this message | ||
I'm slowly beginning to undrestand this, but please bear with a php novice.
When/how were the headers sent? In other words, how do I know that they
have already been sent?
Thanks for humoring me
alex
"Richard Lynch" <rich@phpbootcamp.com> wrote in message
news:php.general-107088@news.php.net...
> >what does this mean:
> >
> >Warning: Cannot send session cache limiter - headers already sent (output
> >started at /home/.edy/alexross/bleen.net/forum/discussion_fns.php:88) in
> >/home/.edy/alexross/bleen.net/forum/index.php on line 5
>
> On line 88 in discussion_fns.php there is an echo or print or even just
some
> HTML, or *EVEN* just a blank line outside of <?php ?> tags.
>
> That is "content" which PHP had to send to the browser.
>
> Now, once PHP has to send content to the browser, it had to send all the
> headers first, then a blank line, then the content.
>
> Pretty much, that's why headers are called headers -- They come at the
> "head" of the HTML, with a blank line in between.
>
> Once all that went out to the browser, you can't call "header()" function,
> because, like, the train has left the station. You can still send more
HTML
> (jump on a box car) but you can't put anything on the front of the train.
> It's gone.
>
> --
> Like Music? http://l-i-e.com/artists.htm
> Off-Topic: What is the moral equivalent of 'cat' in Windows?