• 08-05-2023, 11:01:20
    #1
    Merhaba, url üzerinden indirdiğim zip doyasını açmaya çalışıyorum. klasör olarak windowsta zip yapıyorum win rar ile urlden linux e indiriyor açarken hem cpanel de hemde php de hata veriyor.
    Php sayfadaki hata; (zip boş görüyor halbuki içi dolu)
    19int(19) Error :- Unable to open the Zip File
    CPanel 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?
  • 08-05-2023, 11:10:49
    #2
    WinRAR yerine farklı bir uygulamayla veya doğrudan Windows ile ziplemeyi deneyin
  • 08-05-2023, 11:14:55
    #3
    upload/version/1.2/update.zip dosyasında bulunamıyor.
    unzip: cannot find zipfile directory in one of upload/versiyon/1.2/update.zip

    yolu bulamıyor olabilir.
  • 08-05-2023, 11:25:32
    #4
    windows zipi tanımıyor klasörü linuxda zipleyip urlden indirince yazılımda cpanelde açıyor imza hatası diyor anlamadım