what's Gzip?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

what's Gzip?

Post by qads »

i have heard quite alot about it but what is it? and how do i use it?


thanks
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Did you consider doing a search before asking:
http://www.google.co.uk/search?num=50&h ... w=1&q=gzip

Mac
User avatar
gite_ashish
Forum Contributor
Posts: 118
Joined: Sat Aug 31, 2002 11:38 am
Location: India

Post by gite_ashish »

hi,

twigletmac is correct, google.com is the best resource for search...

Anyway:
Gzip is GNU data compression program.

PHP also has facility for reading/writting gzip files through Zlib Compression Functions.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Just by the name, you could predict it was some form or related to zip. ;)

I never really bothered to learn much about it, since my work has not brought me in any contact with it. But i will soon, and when i do, there is great articles about it and other info on tutorial sites. Here is a bit off there site...
Introduction to Gzip

gzip (GNU zip) is a popular data compression program written by Jean-Loup Gailly <gzip@gnu.org> for the GNU project. Mark Adler <madler@alumni.caltech.edu> wrote the decompression part.

We developed this program as a replacement for compress because of the UNISYS and IBM patents covering the LZW algorithm used by compress. These patents made it impossible for us to use compress, and we needed a replacement. The superior compression ratio of GZIP is just a bonus.

For versions of GZIP for MSDOS, Windows or the Macintosh, see Gailly's gzip page.

The format of the .gz files generated by gzip is described in RFCs (Request For Comments) 1951 and 1952.

Online Manual is available at www.gnu.org/manual/gzip/index.html


Downloading Gzip

more at http://www.gnu.org/software/gzip/gzip.html
User avatar
gite_ashish
Forum Contributor
Posts: 118
Joined: Sat Aug 31, 2002 11:38 am
Location: India

gzip, bzip2 !

Post by gite_ashish »

hi,

Gzip is by default available on (red hat) linux.
man gzip
will give command details, options etc.

There is one more package in (red hat) linux - bzip2 - which is better than gzip in data compression !!
man bzip2
for details, options etc.
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

GZIP's got quite a good compression ratio. You can include the extension in PHP by editing php.ini 8O

P.S. I don't say Google is the best search engine cos I've heard of a better one (don't ask me the name, I forgot... But I know it's still in BETA version).
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

well um...no i did't search for it :oops: , but thanks
Post Reply