ң

bzread

(PHP 4 >= 4.0.4)

bzread - bzip2-.

string bzread (resource bz [, int length])

bzread() length bzip2- , bz . , length () EOF ( ), , У. length , bzread() 1024 () .

1. bzread()
<?php $bz = bzopen("/tmp/foo.bz2", "r"); $str = bzread($bz, 2048); print( $str ); ?>

. bzwrite() bzopen() .


ң
bzopen bzwrite