Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Bzip2 Compression Functions : bzwrite

bzwrite

Binary safe bzip2 file write (PHP 4 >= 4.3.3, PHP 5, PECL bz2:1.0)
int bzwrite ( resource bz, string data [, int length] )

Example 363. bzwrite() example

<?php
$str
= "uncompressed data";
$bz = bzopen("/tmp/foo.bz2", "w");
bzwrite($bz, $str, strlen($str));
bzclose($bz);
?>

Change Language


Follow Navioo On Twitter
bzclose
bzcompress
bzdecompress
bzerrno
bzerror
bzerrstr
bzflush
bzopen
bzread
bzwrite
eXTReMe Tracker