[wd_asp elements=’search’ ratio=’100%’ id=1]

Unzip a file

18th September 2013

Php - Miscellaneous

php codehaven

open($file);
if ($res === TRUE) {
// extract it to the path we determined above
$zip->extractTo($path);
$zip->close();
echo "WOOT! $file extracted to $path";
} else {
echo "Doh! I couldn't open $file";
}
?>