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

search for in the

LZF> <bzread
[edit] Last updated: Fri, 17 May 2013

view this page in

bzwrite

(PHP 4 >= 4.0.4, PHP 5)

bzwriteBzip2 dosyasını ikil olarak yazar

Açıklama

int bzwrite ( resource $bz , string $veri [, int $uzunluk ] )

bzwrite() verilen dizgeyi sıkıştırarak belirtilen bzip2 akımına yazar.

Değiştirgeler

bz

Dosya tanıtıcı. Geçerli ve bzopen() işlevi tarafından açılmış bir dosyayı göstermelidir.

veri

Yazılacak veri.

uzunluk

Eğer belirtilmişse, belirtilen uzunluk bayta erişilince (açılmış halde) veya belirtilen veri'nin sonuna gelinmişse yazma işlemi sona erer.

Dönen Değerler

Yazılan baytların sayısı ile veya hata durumunda FALSE ile döner.

Örnekler

Örnek 1 - bzwrite() örneği

<?php

$str 
'bu yazıyı sıkıştırıp yazalım';
$bz bzopen('/tmp/abc.bz2''w');
bzwrite($bz$strstrlen($str));
bzclose($bz);

?>

Ayrıca Bakınız

  • bzread() - Bzip2 dosyasını ikil olarak okur
  • bzopen() - Bzip2 sıkıştırmalı bir dosyayı açar



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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites