I don't think you need to do the if(strstr($_SERVER['HTTP_ACCEPT_ENCODING'],gzip)) { because ob_start("ob_gzhandler"); checks to see if the browser will accept gzip content before gzipping it..
But I think the reason that it isn't working for you is that you don't have the correct compression libraries compiled into PHP... I spent ages trying to figure out why mind didn't work and this was the problem. The anonying thing is that if you don't have this libs it doesn't even tell you andrew ----- Original Message ----- From: "Kevin Waterson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 14, 2002 3:34 PM Subject: [PHP] ob_start > I wish to compress some data using > ob_start("ob_gzhandler"); > > I use > if(strstr($_SERVER['HTTP_ACCEPT_ENCODING'],gzip)) { > ob_start("ob_gzhandler"); > } else { > ob_start(); > } > but the compression is never used.. > obstart is always used withouth the gz_handler > is there a way around this? or am I doing something > wrong here? > > Kind regards > > kevin > > -- > 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