ң

bzopen

(PHP 4 >= 4.0.4)

bzopen - bzip2- .

resource bzopen (string filename, string mode)

bzip2 (.bz2) .
filename .
mode
fopen() ('r' /read, 'w' /write, etc.).

, FALSE , .

1. bzopen()
<?php $bz = bzopen("/tmp/foo.bz2", "r"); $decompressed_file = bzread($bz, filesize("/tmp/foo.bz2")); bzclose($bz); print( "The contents of /tmp/foo.bz2 are: " ); print( "\n<br>\n" ); print( $decompressed_file ); ?>

. bzclose() .


ң
bzflush bzread