Posted By

goo on 09/28/08


Tagged

zip powweb


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

xuanyan


PHP POWWEB Unzip files


 / Published in: PHP
 

URL: http://forums.powweb.com/showthread.php?t=77764&highlight=unzip

  1. <?php
  2. $filename = 'archive.zip';
  3. $options = '-o'; //Overwrite existing files by default; this is mostly to suppress confirmations
  4. $destDir = '';
  5.  
  6. echo shell_exec ("unzip $options {$filename}{$destDir}");
  7. ?>

Report this snippet  

You need to login to post a comment.