Re: ob_get_contents returns FALSE?
| From: | Shawn McKenzie | Date: | Fri, 06 Jun 2003 14:35:04 +0000 |
| Subject: | Re: ob_get_contents returns FALSE? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150498@lists.php.net to get a copy of this message | ||
Any advice?
Thanks!
Shawn
"Shawn McKenzie" <nospam@mckenzies.net> wrote in message
news:20030605201042.85858.qmail@pb1.pair.com...
> 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
>
>