Query: bzwrite
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BZWRITE(3) 1 BZWRITE(3) bzwrite - Binary safe bzip2 file writeSYNOPSISint bzwrite (resource $bz, string $data, [int $length])DESCRIPTIONbzwrite(3) writes a string into the given bzip2 file stream.PARAMETERSo $bz - The file pointer. It must be valid and must point to a file successfully opened by bzopen(3). o $data - The written data. o $length - If supplied, writing will stop after $length (uncompressed) bytes have been written or the end of $data is reached, whichever comes first.RETURN VALUESReturns the number of bytes written, or FALSE on error.EXAMPLESExample #1 bzwrite(3) example <?php $str = "uncompressed data"; $bz = bzopen("/tmp/foo.bz2", "w"); bzwrite($bz, $str, strlen($str)); bzclose($bz); ?>SEE ALSObzread(3), bzopen(3). PHP Documentation Group BZWRITE(3)
| Related Man Pages |
|---|
| compress::bzip2(3) - mojave |
| compress::bzip2(3) - osx |
| fgetss(3) - php |
| gzread(3) - php |
| compress::bzip2(3pm) - debian |
| Similar Topics in the Unix Linux Community |
|---|
| UNIX.COM 2017 Year End Summary |
| New Code Tags (Syntax Highlighting) |
| Status of UNIX.COM Forum Transformation |
| Denial Of Service Attack Update |
| Please Welcome Nicki Paul to the Moderator Team! |