Ben dinamik değişken kaldırılır ve yerine aşağıda gördüğünüz gibi statik bir biri ile değiştirilir eğer benim previous question on this topic, imalar ne olurdu ...
$source = 'http://mycentralserver.com/protected/myupdater.zip';
Ben kolaylık için aşağıdaki kodu dahil ettik ...
<?php
// TEST.PHP
$source = 'http://mycentralserver.com/protected/myupdater.zip';
$target = '.';
$out_file = fopen(basename($source), 'w');
$in_file = fopen($source, 'r');
while ($chunk = fgets($in_file)) {
fputs($out_file, $chunk);
}
fclose($in_file);
fclose($out_file);
$zip = new ZipArchive();
$result = $zip->open(basename($source));
if ($result) {
$zip->extractTo($target);
$zip->close();
}
?>