Query: gzgets
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GZGETS(3) 1 GZGETS(3) gzgets - Get line from file pointerSYNOPSISstring gzgets (resource $zp, [int $length])DESCRIPTIONGets 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).PARAMETERSo $zp - The gz-file pointer. It must be valid, and must point to a file successfully opened by gzopen(3). o $length - The length of data to get.RETURN VALUESThe uncompressed string, or FALSE on error.EXAMPLESExample #1 gzgets(3) example <?php $handle = gzopen('somefile.gz', 'r'); while (!gzeof($handle)) { $buffer = gzgets($handle, 4096); echo $buffer; } gzclose($handle); ?>SEE ALSOgzopen(3), gzgetc(3), gzwrite(3). PHP Documentation Group GZGETS(3)
Related Man Pages |
---|
fgets(3) - php |
socket_write(3) - php |
fgetss(3) - php |
ftell(3) - php |
gzgetss(3) - php |
Similar Topics in the Unix Linux Community |
---|
Solaris 7 Sparc 5 |
Solaris 7 Sparc 5 |
Problem with compileing CUPS |