Unzip file on remote PHP

Attention: open in a new window. PDFPrintE-mail

Example : unzip.php

------------


$zip = new ZipArchive;

if ($zip->open('ioncube_loaders_lin_x86-64.zip') === TRUE) {

$zip->extractTo('/idnic');

$zip->close();

echo 'ok';

} else {

echo 'failed';

}

?>

-----------