Current Path : /storage/v11800/feelfoundation-new/public_html/mountcu/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/feelfoundation-new/public_html/mountcu/un.php |
<?php
$file = 'mmm.zip';
$path = pathinfo( realpath( $file ), PATHINFO_DIRNAME );
$zip = new ZipArchive;
$res = $zip->open($file);
if ($res === TRUE) {
$zip->extractTo( $path );
$zip->close();
echo "WOOT! $file extracted to $path";
}
else {
echo "Doh! I couldn't open $file";
}