yup.
what you need is ob_start("ob_gzhandler"); at the beginning of the bit you
want to compress, usually at the top of the script and //ob_end_flush(); to
send the output to the browser.

bit of a time lag as the browser decompresses but should save you a bomb on
bandwidth.

check out the php manual for the full descriptions.

Steev

"Corin Rathbone" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> I read a while ago somewhere that is possible in PHP to zip or gzip or
just
> compress the output of a PHP file before sending it to a browser.
Apparently
> the browser can then uncompress this and output the finished page. This
> would be very useful as one of my scripts outputs about 1.5Mb of data.
Does
> anybody know how to do this? Any help most appreciated.
>
> Regards,
> Corin Rathbone
> [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to