Return to Snippet

Revision: 57544
at May 31, 2012 08:25 by zealmurapa


Initial Code
<?php
	 $zip = new ZipArchive;
     $res = $zip->open('sc.zip');
     if ($res === TRUE) {
         $zip->extractTo('sc/');
         $zip->close();
         echo 'ok';
     } else {
         echo 'failed';
     }
?>

Initial URL

                                

Initial Description
Unzip a ZIP FILE FOLDER on a server using PHP - shortest code yet.

Initial Title
Unzip a ZIP FILE FOLDER on a server using PHP - shortest code yet.

Initial Tags

                                

Initial Language
PHP