note 99509 added to function.ziparchive-extractto

From: Date: Fri, 20 Aug 2010 18:05:51 +0000
Subject: note 99509 added to function.ziparchive-extractto
Groups: php.notes 
Request: Send a blank email to php-notes+get-171895@lists.php.net to get a copy of this message
If you want to extract one file at a time, you can use this: <?php $path = 'zipfile.zip' $zip = new ZipArchive; if ($zip->open($path) === true) { for($i = 0; $i < $zip->numFiles; $i++) { $zip->extractTo('path/to/extraction/', array($zip->getNameIndex($i))); // here you can run a custom function for the particular extracted file } $zip->close(); } ?> ---- Server IP: 83.137.20.135 Probable Submitter: 77.169.55.80 ---- Manual Page -- http://www.php.net/manual/en/function.ziparchive-extractto.php Edit -- https://master.php.net/note/edit/99509 Del: integrated -- https://master.php.net/note/delete/99509/integrated Del: useless -- https://master.php.net/note/delete/99509/useless Del: bad code -- https://master.php.net/note/delete/99509/bad+code Del: spam -- https://master.php.net/note/delete/99509/spam Del: non-english -- https://master.php.net/note/delete/99509/non-english Del: in docs -- https://master.php.net/note/delete/99509/in+docs Del: other reasons-- https://master.php.net/note/delete/99509 Reject -- https://master.php.net/note/reject/99509 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171895) next »