gzrewind

(PHP 4, PHP 5, PHP 7) Rewind the position of a gz-file pointer bool gzrewind ( resource $zp ) Sets the file position indicator of the given gz-file pointer to the beginning of the file stream. 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 o

gzputs

(PHP 4, PHP 5, PHP 7) Alias of gzwrite() This function is an alias of: gzwrite().

gzpassthru

(PHP 4, PHP 5, PHP 7) Output all remaining data on a gz-file pointer int gzpassthru ( resource $zp ) Reads to EOF on the given gz-file pointer from the current position and writes the (uncompressed) results to standard output. Note: You may need to call gzrewind() to reset the file pointer to the beginning of the file if you have already written data to it. Tip If you just want to dump the contents of a file to the

gzread

(PHP 4, PHP 5, PHP 7) Binary-safe gz-file read string gzread ( resource $zp, int $length ) gzread() reads up to length bytes from the given gz-file pointer. Reading stops when length (uncompressed) bytes have been read or EOF is reached, whichever comes first. Parameters: zp The gz-file pointer. It must be valid, and must point to a file successfully opened by gzopen().

gzinflate

(PHP 4 >= 4.0.4, PHP 5, PHP 7) Inflate a deflated string string gzinflate ( string $data [, int $length = 0 ] ) This function inflates a deflated string. Parameters: data The data compressed by gzdeflate(). length The maximum length of data to decode. Returns: The original uncompressed data or FALSE on erro

gzopen

(PHP 4, PHP 5, PHP 7) Open gz-file resource gzopen ( string $filename, string $mode [, int $use_include_path = 0 ] ) Opens a gzip (.gz) file for reading or writing. gzopen() can be used to read a file which is not in gzip format; in this case gzread() will directly read from the file without decompression. Parameters: filename The file name. mode

gzgetc

(PHP 4, PHP 5, PHP 7) Get character from gz-file pointer string gzgetc ( resource $zp ) Returns a string containing a single (uncompressed) character read from 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: The uncompressed character or FALSE on E

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.

gzfile

(PHP 4, PHP 5, PHP 7) Read entire gz-file into an array array gzfile ( string $filename [, int $use_include_path = 0 ] ) This function is identical to readgzfile(), except that it returns the file in an array. Parameters: filename The file name. use_include_path You can set this optional parameter to 1, if you want to search for the fi

gzgetss

(PHP 4, PHP 5, PHP 7) Get line from gz-file pointer and strip HTML tags string gzgetss ( resource $zp, int $length [, string $allowable_tags ] ) Identical to gzgets(), except that gzgetss() attempts to strip any HTML and PHP tags from the text it reads. Parameters: zp The gz-file pointer. It must be valid, and must point to a file successfully opened by gzopen().