note 54232 added to ref.zip

From: Date: Tue, 28 Jun 2005 04:33:19 +0000
Subject: note 54232 added to ref.zip
Groups: php.notes 
Request: Send a blank email to php-notes+get-91050@lists.php.net to get a copy of this message
If you just want to unzip a zip folder an alternative to some of the lengthy functions below is: <? function unzip($zip_file, $src_dir, $extract_dir) { copy($src_dir . "/" . $zip_file, $extract_dir . "/" . $zip_file); chdir($extract_dir); shell_exec("unzip $zip_file"); } ?> You don't need the ZIP extension for this. ---- Manual Page -- http://www.php.net/manual/en/ref.zip.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54232 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54232&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54232&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54232&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54232&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54232&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54232&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54232&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#91050) next »