bzopen(3) php man page | unix.com

Man Page: bzopen

Operating Environment: php

Section: 3

BZOPEN(3)								 1								 BZOPEN(3)

bzopen - Opens a bzip2 compressed file

SYNOPSIS
resource bzopen (mixed $file, string $mode)
DESCRIPTION
bzopen(3) opens a bzip2 (.bz2) file for reading or writing.
PARAMETERS
o $file - The name of the file to open, or an existing stream resource. o $mode - The modes 'r' (read), and 'w' (write) are supported. Everything else will cause bzopen(3) to return FALSE.
RETURN VALUES
If the open fails, bzopen(3) returns FALSE, otherwise it returns a pointer to the newly opened file.
EXAMPLES
Example #1 bzopen(3) example <?php $file = "/tmp/foo.bz2"; $bz = bzopen($file, "r") or die("Couldn't open $file for reading"); bzclose($bz); ?>
SEE ALSO
bzclose(3). PHP Documentation Group BZOPEN(3)
Related Man Pages
compress::bzip25.18(3) - mojave
gzopen(3) - php
fwrite(3) - php
compress::bzip2(3) - osx
zip_entry_open(3) - php
Similar Topics in the Unix Linux Community
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun