PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Kalendářové funkce> <bzread
Last updated: Sat, 24 Mar 2007

view this page in

bzwrite

(PHP 4 >= 4.3.3, PHP 5, PECL bz2:1.0)

bzwrite — Binárně bezpečný zápis do souboru bzip2

Popis

int bzwrite ( resource $bz, string $data [, int $length] )

bzwrite() zapíše obsah řetězce data do souboru bzip2 odkazovaného pomocí bz. Je-li přítomen nepovinný parametr length, zápis skončí poté, co bude zapsáno length (nekomprimovaných) bytů nebo bude dosaženo konce řetězce - podle toho, co nastane dřív.

Příklad 270. Příklad bzwrite()

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

Viz také bzread() a bzopen().



add a note add a note User Contributed Notes
bzwrite
There are no user contributed notes for this page.

Kalendářové funkce> <bzread
Last updated: Sat, 24 Mar 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites