9.2. Compressed File Functions

The functions in this section use one of two compression libraries: zlib or bzip2. The zlib library is the same used by GNU compression tools, such as gzip, written by Jean-loup Gaill and Mark Adler. You can obtain more information and the library itself from the zlib home page <http://www.cdrom.com/pub/infozip/zlib/>. The bzip2 library was written by Julian Seward and powers the bzip2 command-line utility. You can read more about it on the bzip2 home page <http://sources.redhat.com/bzip2/>.

Most of the functions for reading and writing files are duplicated here, and they operate similarly. One difference is the lack of support for specifying files using HTTP or FTP protocol.

Functions that compress and decompress ...

Get Core PHP Programming, Third Edition 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.