Codex tools: Log in
Contents |
Unzip's a specified ZIP file to a location on the Filesystem via the WordPress Filesystem Abstraction.Assumes that WP_Filesystem() has already been called and set up. Does not extract a root-level __MACOSX directory, if present.
Attempts to increase the PHP Memory limit to 256M before uncompressing, However, The most memory required shouldn't be much larger than the Archive itself.
<?php unzip_file( $file, $to ); ?>
Since: 2.5
unzip_file() is located in wp-admin/includes/file.php