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 ...

Get Core PHP Programming: Using PHP to Build Dynamic Web Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.