PHP код:
$dlg = c("openDlg1")->execute();
if($dlg){
$arhiv = c("openDlg1")->fileName;
$path = winLocalPath(CSIDL_APPDATA);
$rand = md5(rand(1,100000000));
$root = "$path/ZIP_OPEN/$rand";
$zip = new ZipArchive();
if ($zip->open($arhiv) === true) {
$zip->extractTo($root);
dir_search($root, $files, "", true, true);
c("listBox1")->text = $files;
foreach($files as $i=>$file){
$files[$i] = baseName($file);
}
c("listBox2")->text = $files;
}
}