note 81928 added to function.bzopen
| From: | Jille at quis dot cx dot spam dot to dot my dot devnull | Date: | Wed, 19 Mar 2008 21:11:22 +0000 |
| Subject: | note 81928 added to function.bzopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137215@lists.php.net to get a copy of this message | ||
Warning!
the example show above is _not_ working in every case!
This example will continue reading until there is no more data:
<?PHP
$bz=bzopen('foo.bz2', 'r');
$data="";
do {
$line=bzread($bz, 8092);
if($line!==false)
$data.=$line;
}
while($line);
bzclose($bz);
?>
----
Server IP: 195.184.64.198
Probable Submitter: 82.174.113.83
----
Manual Page -- http://www.php.net/manual/en/function.bzopen.php
Edit -- https://master.php.net/note/edit/81928
Del: integrated -- https://master.php.net/note/delete/81928/integrated
Del: useless -- https://master.php.net/note/delete/81928/useless
Del: bad code -- https://master.php.net/note/delete/81928/bad+code
Del: spam -- https://master.php.net/note/delete/81928/spam
Del: non-english -- https://master.php.net/note/delete/81928/non-english
Del: in docs -- https://master.php.net/note/delete/81928/in+docs
Del: other reasons-- https://master.php.net/note/delete/81928
Reject -- https://master.php.net/note/reject/81928
Search -- https://master.php.net/manage/user-notes.php