it isn't a hack.  that is a good way to tell.  :)

all depends on if he plans to continually use this check in his script or if
he is just going to just test for it durning development.

Jim Lucas

----- Original Message -----
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Jim Lucas" <[EMAIL PROTECTED]>
Cc: "Shawn McKenzie" <[EMAIL PROTECTED]>; "php-general"
<[EMAIL PROTECTED]>
Sent: Saturday, June 07, 2003 8:29 AM
Subject: Re: [PHP] How to determine if output buffering is on?


> 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
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to