CakeFest 2024: The Official CakePHP Conference

bzwrite

(PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8)

bzwriteEsegue la scrittura binaria di un file bzip2

Descrizione

bzwrite(resource $bz, string $dati, int $lunghezza = ?): int

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, $str, strlen($str));
bzclose($bz);
?>

Vedere anche bzread() e bzopen().

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top