Re: ob_start
| From: | Andrew Brampton | Date: | Sun, 14 Jul 2002 14:41:30 +0000 |
| Subject: | Re: ob_start | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107610@lists.php.net to get a copy of this message | ||
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" <kevin@oceania.net>
To: <php-general@lists.php.net>
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
>
>