★ wanayoo — archive 1999 http://www.php.net/manual/function.gzread.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: gzread
View the source code for this pageSearch the site



Previous page
 gzputs
 Updated
Sat, 12 Aug 2000
gzrewind 
Next page


gzread

(PHP3 , PHP4 )

gzread -- Binary-safe gz-file read

Description

string gzread (int zp, int length)

gzread() reads up to length bytes from the gz-file pointer referenced by zp. Reading stops when length (uncompressed) bytes have been read or EOF is reached, whichever comes first.


// get contents of a gz-file into a string
$filename = "/usr/local/something.txt.gz";
$zd = gzopen ($filename, "r");
$contents = gzread ($zd, 10000);
gzclose ($zd);
      

See also gzwrite(), gzopen(), gzgets(), gzgetss(), gzfile(), and gzpassthru().


 About Notes


Previous page
 gzputs
 Updated
Sat, 12 Aug 2000
gzrewind 
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.