Re: Headers Problem
| From: | John W. Holmes | Date: | Tue, 23 Dec 2003 23:47:49 +0000 |
| Subject: | Re: Headers Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-173275@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 1You 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. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com