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

search for in the

LZF> <Bzip2 Funzioni
Last updated: Fri, 18 Jul 2008

view this page in

bzwrite

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

bzwrite — Esegue la scrittura binaria di un file bzip2

Descrizione

int bzwrite ( resource $bz , string $dati [, int $lunghezza ] )

bzwrite() scrie il contenuto della stringa dati nel file bzip2 puntato da bz . Se il parametro opzionale lunghezza è specificato, la scrittura si fermerà dopo che siano stati scritti lunghezza byte (decompressi) o al raggiungimento della fine della stringa.

Example #1 Esempio di bzwrite()

<?php
$str 
"dati non compressi";
$bz bzopen("/tmp/foo.bz2""w");
bzwrite($bz$strstrlen($str));
bzclose($bz);
?>

Vedere anche bzread() e bzopen().



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

LZF> <Bzip2 Funzioni
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites