brasofilo

php unzip

Oct 20th, 2011
638
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // uses unzip command just like in commandline
  3. // usage: yourdomain.com/yourfolder/unzip.php?file=FILENAME (without extension)
  4. //
  5. $file = 'unzip '.$_GET['f'].'.zip';
  6. echo system($file,$output);
  7. print_r($output);
  8. ?>
  9.  
RAW Paste Data