have a look at ob_start("ob_gzhandler") which will compress the page and
then send it, expecting the client to decompress it on arrival.
this is all handled transparently so you don't need to worry about the
decompression.
i found it very slightly slower but enormous reductions in network traffic.
Steve
> -----Original Message-----
> From: Shriram Chaubal (Personal) [mailto:[EMAIL PROTECTED]]
> Sent: 21 June 2001 15:31
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-DB] mysql client compression with php?
>
>
> Is there anyone who can help with this? Or is there a paid
> support option I
> could use to help resolve this issue?
>
> Regards,
> Shriram
>
> ""Shriram Chaubal (Personal)"" <[EMAIL PROTECTED]> wrote
> in message
> 9gntu2$ng8$[EMAIL PROTECTED]">news:9gntu2$ng8$[EMAIL PROTECTED]...
> > Hi,
> >
> > I have to connect my php server to a remote mysql database
> and would like
> to
> > minimize the bandwidth usage.
> >
> > Adding a setting in my.cnf as follows only seems to affect the mysql
> client
> > applications and not php.
> >
> > [client]
> > compress
> >
> > I have noticed a define in the php sources called
> "HAVE_COMPRESS" but have
> > no clue where it gets defined.
> >
> > Any tips?
> >
> > Cheers,
> > Shri
> >
> >
> >
> >
> >
> >
> > --
> > PHP Database 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]
> >
>
>
>
> --
> PHP Database 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]
>
--
PHP Database 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]