Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $file = 'filename.zip';
- $unzip = new ZipArchive;
- $out = $unzip->open($file);
- if ($out === TRUE) {
- $unzip->extractTo(getcwd());
- $unzip->close();
- echo 'File unzipped';
- } else {
- echo 'Error';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement