Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

unzip file php

$zip = new ZipArchive;
$res = $zip->open('file.zip');
if ($res === TRUE) {
  $zip->extractTo('/myzips/extract_path/');
  $zip->close();
  echo 'woot!';
} else {
  echo 'doh!';
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #unzip #file #php
ADD COMMENT
Topic
Name
6+3 =