RE: [PHP] how to determine size of gz-handler output
| From: | scott [gts] | Date: | Mon, 02 Jul 2001 14:51:21 +0000 |
| Subject: | RE: [PHP] how to determine size of gz-handler output | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55840@lists.php.net to get a copy of this message | ||
as far as i know, $cont is not GZ compressed....
so you're getting the length of the uncompressed data.
the contents only get compressed right before sending
output to the browser...
> -----Original Message-----
> From: Sebastian Stadtlich [mailto:Stadtlich@mediaworx.com]
> Sent: Friday, June 29, 2001 6:54 AM
> To: 'Php-General (E-Mail)
> Subject: [PHP] how to determine size of gz-handler output
>
>
> Hi all
>
> I'd like to know how small my content gets when i use
> ob_gzhandler.
> so far i tried
> $cont=ob_get_contents();
> $length=strlen($cont);
> echo "<!-- $length -->\n";
>
> but it outputs
> <!-- 17280 -->
>
> while apache says in its logfile:
> 217.81.41.121 - - [29/Jun/2001:12:43:59 +0200] "GET / HTTP/1.1" 200 2028
>
> i'm starting to get confused...
>
> Sebastian
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>