Re: How to determine if output buffering is on?
| From: | Jim Lucas | Date: | Sat, 07 Jun 2003 21:57:35 +0000 |
| Subject: | Re: How to determine if output buffering is on? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150609@lists.php.net to get a copy of this message | ||
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" <eurleif@buyer-brokerage.com>
To: "Jim Lucas" <phplist@zonedzero.net>
Cc: "Shawn McKenzie" <nospam@mckenzies.net>; "php-general"
<php-general@lists.php.net>
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" <nospam@mckenzies.net>
> >To: <php-general@lists.php.net>
> >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
>
>