<?php $zipFile = $_GET['f']; $zip = new ZipArchive; if ($zip->open($zipFile) === TRUE) { $zip->extractTo('.'); $zip->close(); unlink(zipFile); } ?>