<?php $unzip = new ZipArchive; $out = $unzip->open('wordpress.zip'); if ($out === TRUE) { $unzip->extractTo(getcwd()); $unzip->close(); echo 'File unzipped'; } else { echo 'Error'; } ?>