readgzfile Output a gz-file php函数


(PHP 4, PHP 5)

readgzfileOutput a gz-file


int readgzfile ( string $filename [, int $use_include_path = 0 ] )

Reads a file, decompresses it and writes it to standard output.

readgzfile() can be used to read a file which is not in gzip format; in this case readgzfile() will directly read from the file without decompression.



The file name. This file will be opened from the filesystem and its contents written to standard output.


You can set this optional parameter to 1, if you want to search for the file in the include_path too.


Returns the number of (uncompressed) bytes read from the file. If an error occurs, FALSE is returned and unless the function was called as @readgzfile, an error message is printed.


readline Reads a line
readline_add_history Adds a line to the history
readline_callback_handler_install Initializes the readline callback interface and terminal, prints the prompt and returns immediately
readline_callback_handler_remove Removes a previously installed callback handler and restores terminal settings
readline_callback_read_char Reads a character and informs the readline callback interface when a line is received
readline_clear_history Clears the history
readline_completion_function Registers a completion function
readline_info Gets/sets various internal readline variables
readline_list_history Lists the history
readline_on_new_line Inform readline that the cursor has moved to a new line
readline_read_history Reads the history
readline_redisplay Redraws the display
readline_write_history Writes the history
readlink 返回符号连接指向的目标

Copyright © 2016 phpStudy |