note 59716 added to function.zip-open
| From: | ponsho at osu1 dot php dot net | Date: | Wed, 14 Dec 2005 08:44:40 +0000 |
| Subject: | note 59716 added to function.zip-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-100114@lists.php.net to get a copy of this message | ||
For bisqwit at iki dot fi solution of alternative functions there's just one problem when
trying to read the file thats because some bug in fread when handling from popen so it just load
8192 bytes here's the function corrected.
<?php
function zip_entry_read(&$res, $nbytes)
{
while ($s = fgets($res['fp'],1024)) {
$data .= $s;
}
return $data;
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.zip-open.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59716
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59716&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59716&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59716&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59716&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59716&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59716&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59716&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59716&report=yes
Search -- http://master.php.net/manage/user-notes.php