From: hp on
> The file that I want to send is going to be unpacked by PHP.
> PHP seems to have GZip compression by default and not the regular ZIP.

It is not true, that PHP uses by default gzip. There are many was to
compress with PHP including ZIP format(see http://us.php.net/manual/en/refs.compression.php)

May be the website where your PHP file is, it is on an APACHE server,
and many admins set up the server to send and receive compressed files
using the Gzip format, which is more efficient thatn doing the
compression with the PHP script.


to Geoff:

Many programmers (including MS's) are discovering that it is more
efficient to send back and for data compressed using gzip (popularity?
or many web servers set up in Apache?). GZip is the format of
preference for HTTP compression:

http://www.ibm.com/developerworks/web/library/wa-httpcomp/
http://www.webperformance.org/compression/
particularly if your application send or receive data in XML format
(pretty common these days) or serialized arrays/objects from/to PHP
scripts.

HPeter
From: Geoff Schaller on
I would rather just rely on native compression as it stands. We use a
lot of web services to move data around the net but if it is "big" we
zip it ourselves and unzip at the destination. But mostly, native
compression is good enough.

Geoff



"hp" <hpatino(a)rocketmail.com> wrote in message
news:30028353-5c1b-4949-b452-50c1ffea4254(a)d14g2000vbb.googlegroups.com:

> to Geoff:
>
> Many programmers (including MS's) are discovering that it is more
> efficient to send back and for data compressed using gzip (popularity?
> or many web servers set up in Apache?). GZip is the format of
> preference for HTTP compression:
>
> http://www.ibm.com/developerworks/web/library/wa-httpcomp/
> http://www.webperformance.org/compression/
> particularly if your application send or receive data in XML format
> (pretty common these days) or serialized arrays/objects from/to PHP
> scripts.
>
> HPeter