★ wanayoo — archive 1999 http://fr.php.net/manual/de/function.gzread.phpNouvelle recherche | Portail wanayoo
PHP Tuesday, March 20, 2001  
downloads | documentation | faq | support | reporting bugs | links 

search for in the  

lookup:
PHP HandbuchPHP Handbuch
ZlibZlib
 gzclosegzclose
 gzeofgzeof
 gzfilegzfile
 gzgetcgzgetc
 gzgetsgzgets
 gzgetssgzgetss
 gzopengzopen
 gzpassthrugzpassthru
 gzputsgzputs
 gzreadgzread
 gzrewindgzrewind
 gzseekgzseek
 gztellgztell
 gzwritegzwrite
 readgzfilereadgzfile
 gzcompressgzcompress
 gzuncompressgzuncompress
 gzdeflategzdeflate
 gzinflategzinflate
 gzencodegzencode

previousgzputs
gzrewindnext

Last updated: Tue, 20 Mar 2001
view this page in English | Brazilian Portuguese | Czech | Dutch | French | German | Hungarian | Italian | Japanese | Korean | Spanish | Plain HTML

gzread

(PHP 3, PHP 4 )

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

previousgzputs
gzrewindnext

Last updated: Tue, 20 Mar 2001
add note | about notes

show source | credits | mirror sites:  

Copyright © 1998-2001 The PHP Group
All rights reserved.
This mirror generously provided by: L'Université Michel de Montaigne Bordeaux III
Last updated: Tue Mar 20 11:02:45 2001 MET