RE: [PHP] Headers Problem
| From: | Beauford | Date: | Wed, 24 Dec 2003 13:37:29 +0000 |
| Subject: | RE: [PHP] Headers Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173297@lists.php.net to get a copy of this message | ||
Beauford wrote:
> I'm getting the following error. My question is, where would I use the
> ob_start() and ob_end_flush() function so I can get rid of this. I
> have read the PHP manual, but not quite getting it.....Or if there is a
better way?
> Don't work around the problem with output buffering; try fixing it.
> Warning: session_start() [function.session-start]: Cannot send session
> cache limiter - headers already sent (output started at
> /usr/local/apache/htdocs/supreme/updates/update-corrections-write.php:
> 2) in /usr/local/apache/php/includes/restricted.inc on line 1
You must have session_start() before any output. You've placed it on line 1
of restricted.inc, but output was started on line 2 of
update-corrections-write.php. If you're going to include restricted.inc and
start a session, include it before there is output.
Just a clarification, session_start() is on the first line of restricted.inc
and restricted.inc is included on the first line of
update-corrections-input.php. All update-corrections-write.php does is write
info to a database and includes update-corrections-input.php on the last
line. So I'm still not understanding where the output from
update-corrections-write.php is coming from.
Thanks