note 42827 added to ref.zip
| From: | krishnendu at spymac dot com | Date: | Mon, 31 May 2004 05:28:17 +0000 |
| Subject: | note 42827 added to ref.zip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-70329@lists.php.net to get a copy of this message | ||
If you want to unzip an password protected file with php..try the following command....it works in
Unix/Apache environment...I haven't tested in any other environment...
system("
which unzip -P Password $zipfile -d $des",$ret_val)
Where $zipfile is the path to the .zip to be unzipped and $des is path to the destination
directory.....here both absolute and relative path to the script (which contains this system
command) will work...
if everything runs well...file should be unzipped at the $des directory..and you will get 0 value
for $ret_val , which means success(info-zip.org)
Regards
Krishnendu
----
Manual Page -- http://www.php.net/manual/en/ref.zip.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42827
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42827&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42827&report=yes
Search -- http://master.php.net/manage/user-notes.php