Showing posts with label source. Show all posts
Showing posts with label source. Show all posts

Wednesday, 6 August 2014

By using PHP unzip zip files with source code

<?php
$zip = new ZipArchive;
$res = $zip->open('demo.zip');
if ($res === TRUE) {
$zip->extractTo('test/');
$zip->close();
echo 'woot!';
} else {
echo 'doh!';
}
?>