ob_get_contents returns FALSE?

From: Date: Thu, 05 Jun 2003 20:10:37 +0000
Subject: ob_get_contents returns FALSE?
Groups: php.general 
Request: Send a blank email to php-general+get-150402@lists.php.net to get a copy of this message
I can't get ob_get_contents() to return false, or I don't know how to test for it. Help appreciated. 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

« previous php.general (#150402) next »