Php sayfadaki hata; (zip boş görüyor halbuki içi dolu)
19int(19) Error :- Unable to open the Zip FileCPanel zip açarken hatası
Archive: upload/versiyon/1.2/update.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
note: upload/versiyon/1.2/update.zip may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of upload/versiyon/1.2/update.zip or
upload/versiyon/1.2/update.zip.zip, and cannot find upload/versiyon/1.2/update.zip.ZIP, period.
aynı klasörü cpanelde zip yaparsam zipi açıyor.
kod yapısı
$rep = indir(str_replace("https","http",$sonuc->data->PAKET),"upload/versiyon/".$sonuc->data->VERSIYON."/update.zip");
if(file_exists("upload/versiyon/".$sonuc->data->VERSIYON."/update.zip")){
$zipFile = "upload/versiyon/".$sonuc->data->VERSIYON."/update.zip";
chmod($zipFile, 0775);
$zip = new ZipArchive;
$extractPath = "";
$res = $zip->open($zipFile);
pre($res);
var_dump($res);
if(is_resource($res))
{
$zip->extractTo($extractPath);
$zip->close();
$versiyon = lcurl($verup."&versiyon=".$sonuc->data->VERSIYON);
echo dilpaketi($ozy,"site","Versiyon Güncellenmiştir. - ".$sonuc->data->VERSIYON);
}else{
echo dilpaketi($ozy,"site","Error :- Unable to open the Zip File");
}
}else{
echo dilpaketi($ozy,"site","Zip Dosyası Yoktur");
}konuyla ilgili yardımcı olabilecek var mıdır?