Skip to content

Instantly share code, notes, and snippets.

@biswarupadhikari
Created September 7, 2013 05:20
Show Gist options
  • Select an option

  • Save biswarupadhikari/6473000 to your computer and use it in GitHub Desktop.

Select an option

Save biswarupadhikari/6473000 to your computer and use it in GitHub Desktop.

Revisions

  1. @adidac adidac created this gist Sep 7, 2013.
    11 changes: 11 additions & 0 deletions unzip.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <?php
    $zip = new ZipArchive;
    $res = $zip->open('my-20130906-191334.zip');
    if ($res === TRUE) {
    $zip->extractTo(dirname(__FILE__));
    $zip->close();
    echo 'woot!';
    } else {
    echo 'doh!';
    }
    ?>