O'Reilly logo

Core PHP Programming: Using PHP to Build Dynamic Web Sites by Leon Atkinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Compressed File Functions

The functions in this section use the zlib library to work with files compressed with GNU compression tools, such as gzip. The library was written by Jean-loup Gaill and Mark Adler. The two are authors of the gzip tool, in fact. You can obtain more information and the library itself from the zlib home page <http://www.cdrom.com/pub/infozip/zlib/>.

In order to activate these functions, you must include the zlib extension. On a UNIX operating system, you configure PHP to use zlib as you compile it. On Windows you may activate the php_zlib.dll extension either in php.ini or using the dl function.

Most of the functions for reading and writing files are duplicated here and they operate similarly. One difference is the lack ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required