| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
in regards to the extracting via unzip.lib.php:
Don't forget to also put in the file path.
Otherwise you end up with a lot of files in the wrong folder...
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->Path .'/'.$entry->Name, 'w', false);
fwrite($fh,$entry->Data);
fclose($fh);
}
----
Server IP: 195.54.192.44
Probable Submitter: 127.0.0.1
----
Manual Page -- http://www.php.net/manual/en/ref.zip.php
Edit -- https://master.php.net/note/edit/86209
Del: integrated -- https://master.php.net/note/delete/86209/integrated
Del: useless -- https://master.php.net/note/delete/86209/useless
Del: bad code -- https://master.php.net/note/delete/86209/bad+code
Del: spam -- https://master.php.net/note/delete/86209/spam
Del: non-english -- https://master.php.net/note/delete/86209/non-english
Del: in docs -- https://master.php.net/note/delete/86209/in+docs
Del: other reasons-- https://master.php.net/note/delete/86209
Reject -- https://master.php.net/note/reject/86209
Search -- https://master.php.net/manage/user-notes.php