Advertisement
FeRR4L

unzip

Nov 5th, 2013
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Entpackt ein ZIP-Archiv auf Server
  3. $zip = new zipArchive;
  4. if ($zip->open('file.zip') === TRUE) {
  5.     $zip->extractTo('/users/NAME/www/');
  6. sleep(15);  // laesst das Script 15sek schlafen
  7.     $zip->close();
  8.     echo 'ok';
  9. } else {
  10.     echo 'gagal';
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement