Advertisement
Ironix

Unzip a archive to server + 15sec sleep

Apr 22nd, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. <?php
  2. // Entpackt ein ZIP-Archiv auf Server
  3. $zip = new zipArchive;
  4. if ($zip->open('DATEI.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 'Fehler';
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement