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

search for in the

bzwrite> <bzopen
Last updated: Sat, 24 Mar 2007

view this page in

bzread

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

bzread — Binárně bezpečné čtení ze souboru bzip2

Popis

string bzread ( resource $bz [, int $length] )

bzread() přečte nejvýše length bytů z bzip2 souboru odkazovaného pomocí bz. Čtení končí, je-li přečteno length (nekomprimovaných) bytů nebo se dosáhne konce souboru - podle toho, co nastane dřív. Není-li specifikován nepovinný parametr length, funkce bzread() přečte najednou 1024 (nekomprimovaných) bytů.

Příklad 269. Příklad - bzread()

<?php
$bz
= bzopen("/tmp/foo.bz2", "r");
$str = bzread($bz, 2048);
echo
$str;
?>

Viz také bzwrite() a bzopen().



add a note add a note User Contributed Notes
bzread
bitlz at mail dot ru
05-Aug-2004 07:02
max value of length is 8192 (2^13).
if length is more than 8192 bzread understand as 8192. :)

ps. php 5.0.0 under win2k sp4.

bzwrite> <bzopen
Last updated: Sat, 24 Mar 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites