gzeof

(PHP 4, PHP 5, PHP 7) Test for EOF on a gz-file pointer int gzeof ( resource $zp ) Tests the given GZ file pointer for EOF. Parameters: zp The gz-file pointer. It must be valid, and must point to a file successfully opened by gzopen(). Returns: Returns TRUE if the gz-file pointer is at EOF or an error occurs; otherwise returns FALSE.

gzencode

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Create a gzip compressed string string gzencode ( string $data [, int $level = -1 [, int $encoding_mode = FORCE_GZIP ]] ) This function returns a compressed version of the input data compatible with the output of the gzip program. For more information on the GZIP file format, see the document: » GZIP file format specification version 4.3 (RFC 1952). Parameters:

gzdeflate

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Deflate a string string gzdeflate ( string $data [, int $level = -1 [, int $encoding = ZLIB_ENCODING_RAW ]] ) This function compresses the given string using the DEFLATE data format. For details on the DEFLATE compression algorithm see the document "» DEFLATE Compressed Data Format Specification version 1.3" (RFC 1951). Parameters: data

gzdecode

(PHP 5 >= 5.4.0, PHP 7) Decodes a gzip compressed string string gzdecode ( string $data [, int $length ] ) This function returns a decoded version of the input data. Parameters: data The data to decode, encoded by gzencode(). length The maximum length of data to decode. Returns: The decoded string, or FALSE

gzcompress

(PHP 4 >= 4.0.1, PHP 5, PHP 7) Compress a string string gzcompress ( string $data [, int $level = -1 [, int $encoding = ZLIB_ENCODING_DEFLATE ]] ) This function compresses the given string using the ZLIB data format. For details on the ZLIB compression algorithm see the document "» ZLIB Compressed Data Format Specification version 3.3" (RFC 1950). Note: This is not the same as gzip compression, which includes some

gzclose

(PHP 4, PHP 5, PHP 7) Close an open gz-file pointer bool gzclose ( resource $zp ) Closes the given gz-file pointer. Parameters: zp The gz-file pointer. It must be valid, and must point to a file successfully opened by gzopen(). Returns: Returns TRUE on success or FALSE on failure. Examples:

zip_read

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.0.0) Read next entry in a ZIP file archive resource zip_read ( resource $zip ) Reads the next entry in a zip file archive. Parameters: zip A ZIP file previously opened with zip_open(). Returns: Returns a directory entry resource for later use with the zip_entry_... functions, or FALSE

zip_open

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.0.0) Open a ZIP file archive resource zip_open ( string $filename ) Opens a new zip archive for reading. Parameters: filename The file name of the ZIP archive to open. Returns: Returns a resource handle for later use with zip_read() and zip_close() or returns the number of error if fi

zip_entry_read

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.0.0) Read from an open directory entry string zip_entry_read ( resource $zip_entry [, int $length = 1024 ] ) Reads from an open directory entry. Parameters: zip_entry A directory entry returned by zip_read(). length The number of bytes to return. Note: This should be th

zip_entry_open

(PHP 4 >= 4.1.0, PHP 5 >= 5.2.0, PHP 7, PECL zip >= 1.0.0) Open a directory entry for reading bool zip_entry_open ( resource $zip, resource $zip_entry [, string $mode ] ) Opens a directory entry in a zip file for reading. Parameters: zip A valid resource handle returned by zip_open(). zip_entry A directory entry returned by zip