Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $path_to_zip = '/some-local-path/testfile.zip';
- $archiver = archiver_get_archiver($path_to_zip);
- $files = $archiver->listContents();
- $extract_location = '/some-extract-location/';
- if (file_exists($extract_location)) {
- file_unmanaged_delete_recursive($extract_location);
- }
- $archiver->extract($extract_location);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement