What I'm trying to ascertain is whether it should go before or after session_start(), or any other headers for that matter...
"Andrew Brampton" <[EMAIL PROTECTED]> wrote in message 012401c1dbd9$c4266000$0100a8c0@STUDENT5830">news:012401c1dbd9$c4266000$0100a8c0@STUDENT5830... I would guess before any output to the browser... so nearer the top the better Andrew "Daniel Swarbrick" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 > ?> > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php