Re: Ob_start question
| From: | John W. Holmes | Date: | Wed, 03 Sep 2003 12:03:04 +0000 |
| Subject: | Re: Ob_start question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161541@lists.php.net to get a copy of this message | ||
Beauford.2005 wrote:
I am getting this error: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/local/apache/php/includes/2004server.inc:24) in /usr/local/apache/php/includes/restricted.inc on line 5 I have ob_start(); and ob_end_flush(); at the beginning and end of restricted.inc. Like the following. Could someone explain why I am still getting the above error. 2004server.inc is just the mysql server info....At what point are you including the .inc file, though? You must be including it outside of the output buffering function in order to get this error. Either move the inclusion of this file within the output buffering or fix whatever is causing output on line 24 of 2004server.inc. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com