php unzip
Php
code posted
created at 29 Aug 11:04
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<?php $zip = zip_open("zip.zip"); if ($zip) { while ($zip_entry = zip_read($zip)) { $fp = fopen("zip/".zip_entry_name($zip_entry), "w"); if (zip_entry_open($zip, $zip_entry, "r")) { $buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry)); fwrite($fp,"$buf"); zip_entry_close($zip_entry); fclose($fp); } } zip_close($zip); } ?> |
392 Bytes in 2 ms with coderay