Query: bzread
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BZREAD(3) 1 BZREAD(3) bzread - Binary safe bzip2 file readSYNOPSISstring bzread (resource $bz, [int $length = 1024])DESCRIPTIONbzread(3) reads from the given bzip2 file pointer. Reading stops when $length (uncompressed) bytes have been read or EOF is reached, whichever comes first.PARAMETERSo $bz - The file pointer. It must be valid and must point to a file successfully opened by bzopen(3). o $length - If not specified, bzread(3) will read 1024 (uncompressed) bytes at a time. A maximum of 8192 uncompressed bytes will be read at a time.RETURN VALUESReturns the uncompressed data, or FALSE on error.EXAMPLESExample #1 bzread(3) example <?php $file = "/tmp/foo.bz2"; $bz = bzopen($file, "r") or die("Couldn't open $file"); $decompressed_file = ''; while (!feof($bz)) { $decompressed_file .= bzread($bz, 4096); } bzclose($bz); echo "The contents of $file are: <br /> "; echo $decompressed_file; ?>SEE ALSObzwrite(3), feof(3), bzopen(3). PHP Documentation Group BZREAD(3)
Related Man Pages |
---|
compress::bzip2(3) - mojave |
compress::bzip25.18(3) - mojave |
bzread(3) - php |
gzgetss(3) - php |
compress::bzip2(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Cannot read in variable using read on first try |
Cant read in variable on first try |