Thanks Leif. I hoping to get something for vers of PHP < 4.2. From my earlier post:
The following never echos STARTING!!! ob_end_flush(); if(ob_get_contents() == FALSE) { echo "STARTING!!!"; ob_start(); } also tried: if(ob_get_contents() === FALSE) and: if(!ob_get_contents()) and: if(ob_get_contents() == "") But I do get the following notice at the ob_end_flush(); line which tells me that output buffering is not on: Notice: ob_end_flush() [ref.outcontrol]: failed to delete buffer default output handler. Thanks! Shawn "Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Yay, a hack! The correct answer is ob_get_level(). > > Jim Lucas wrote: > > >output some html and then try and do an header() redirect. > > > >if it works, then some sort of buffering is turned on. > > > >if it fails and tells you that output has already been sent to the browser, > >then it isn't turned on. > > > >Jim Lucas > >----- Original Message ----- > >From: "Shawn McKenzie" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Sent: Saturday, June 07, 2003 7:39 AM > >Subject: [PHP] How to determine if output buffering is on? > > > > > > > > > >>O.K. so how can I determine if output buffering has been started??? > >> > >>Thanks! > >>Shawn > >> > >> > >> > >>-- > >>PHP General Mailing List (http://www.php.net/) > >>To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > >> > >> > > > > > > > > > > -- > The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php