Created
September 23, 2017 16:02
-
-
Save devuri/ac3b6afa442ad8386b73ba1b2e14e3d2 to your computer and use it in GitHub Desktop.
Unzip a file used this as a utility not for production
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $zip = new ZipArchive; | |
| if(isset($_POST['submit'])){ | |
| $zip->open('zipfile.zip'); | |
| $zip->extractTo('./'); | |
| $zip->close(); | |
| } | |
| ?><form action="" method="post"> | |
| <input name="submit" type="submit"> | |
| </form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment