note 83443 added to ref.zip
| From: | fgarciarico at gmail dot com | Date: | Mon, 26 May 2008 18:19:14 +0000 |
| Subject: | note 83443 added to ref.zip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139800@lists.php.net to get a copy of this message | ||
Using the same scripts as the last message:
\libraries\zip.lib.php
\libraries\unzip.lib.php
you can also extract all the files included in a zip file. This is my own example:
require_once("zip.lib.php");
require_once("unzip.lib.php");
$zip = new SimpleUnzip();
$filename = "myzippedfile.zip";
$entries = $zip->ReadFile($filename);
foreach ($entries as $entry){
$fh = fopen($entry->Name, 'w', false);
fwrite($fh,$entry->Data);
fclose($fh);
}
----
Server IP: 208.69.120.35
Probable Submitter: 193.145.231.109
----
Manual Page -- http://www.php.net/manual/en/ref.zip.php
Edit -- https://master.php.net/note/edit/83443
Del: integrated -- https://master.php.net/note/delete/83443/integrated
Del: useless -- https://master.php.net/note/delete/83443/useless
Del: bad code -- https://master.php.net/note/delete/83443/bad+code
Del: spam -- https://master.php.net/note/delete/83443/spam
Del: non-english -- https://master.php.net/note/delete/83443/non-english
Del: in docs -- https://master.php.net/note/delete/83443/in+docs
Del: other reasons-- https://master.php.net/note/delete/83443
Reject -- https://master.php.net/note/reject/83443
Search -- https://master.php.net/manage/user-notes.php