★ wanayoo — archive 1999 http://www.php.net/manual/function.readgzfile.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Zlib
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
Zlib
* gzclose
* gzeof
* gzfile
* gzgetc
* gzgets
* gzgetss
* gzopen
* gzpassthru
* gzputs
* gzread
* gzrewind
* gzseek
* gztell
* gzwrite
* readgzfile
* gzcompress
* gzuncompress
Manual: readgzfile
View the source code for this pageSearch the site



Previous page
 gzwrite
 Updated
Sat, 12 Aug 2000
gzcompress 
Next page


readgzfile

(PHP3 , PHP4 )

readgzfile -- Output a gz-file

Description

int readgzfile (string filename [, int use_include_path])

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.

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.

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

You can use the optional second parameter and set it to "1", if you want to search for the file in the include_path, too.

See also gzpassthru(), gzfile(), and gzopen().


 About Notes


Previous page
 gzwrite
 Updated
Sat, 12 Aug 2000
gzcompress 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.