PHP POWWEB Unzip files


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.