Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login
(PHP 4 >= 4.0.4, PHP 5)
bzwrite() は、文字列 dataの中身を bzが指すbzip2ファイルストリームに書き込み ます。オプションの引数lengthを指定した場合、 (圧縮前の)lengthバイト分の書き込みが終ったか、文字列の終端に達し たかで書き込みは終了します。
例 1. bzwrite() の例
<?php$str = "uncompressed data";$bz = bzopen("/tmp/foo.bz2", "w");bzwrite($bz, $str, strlen($str));bzclose($bz);?>
bzread()およびbzopen()も参 照下さい。
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account
Document on this page is part of "PHP マニュアル". See Index Page for more info about Authorship and Copyright.
1999-2009 Linuxinfor.com. No rights reserved.