Re: Using ob_gzhandler
| From: | Andrew Brampton | Date: | Thu, 04 Apr 2002 13:08:08 +0000 |
| Subject: | Re: Using ob_gzhandler | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-91505@lists.php.net to get a copy of this message | ||
I would guess before any output to the browser... so nearer the top the better
Andrew
"Daniel Swarbrick" <daniel@pressure.net.nz> wrote in message news:20020404043911.4782.qmail@pb1.pair.com...
> Can someone please confirm the correct place to call
> ob_start("ob_gzhandler") in a script? I am using sessions also, and the
> start of my scripts is like so:
>
> <?php
> require_once("DB.php");
> include("lib.inc.php");
>
> session_start();
> if ( ! $_SESSION[sess_auth]) {
> header("location: index.php");
> exit();
> }
>
> $db = DB::connect($conn_str, TRUE);
> $db->setFetchMode(DB_FETCHMODE_OBJECT);
>
> // rest of script
> ?>
>
>
>