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

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

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

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

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

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

gzgets

(PHP 4, PHP 5, PHP 7) Get line from file pointer string gzgets ( resource $zp [, int $length ] ) Gets a (uncompressed) string of up to length - 1 bytes read from the given file pointer. Reading ends when length - 1 bytes have been read, on a newline, or on EOF (whichever comes first). Parameters: zp The gz-file pointer. It must be valid, and must point to a file successfu

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

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