open($file); if ($res === TRUE) { $rs = $zip->extractTo(getcwd()); if ($rs) { @unlink($file); header('Location: ./'); } else { echo 'This installer failed to extract the contents of the archive file "'.$file.'".
'; echo $zip->getStatusString(); } } else { echo 'This installer failed to open the file "'.$file.'".'; }