Ben şu anda bir içerik yükleme sistemi oluşturmak için çalışıyorum ve içeriği için uygun klasörü kontrol ederken sayfasından yapılan hata olmasına rağmen boş olduğu
$chapterZip = new ZipArchive();
if ($chapterZip->open($_FILES['chapterUpload']['name']))
{
for($i = 0; $i < $chapterZip->numFiles; $i++)
{
$pictureName = $chapterZip->getNameIndex($i);
$fileOpened = $chapterZip->getStream($pictureName);
if(!$fileOpened) exit("failed\n");
while (!feof($fileOpened)) {
$contents = fread($fileOpened, 8192);
// do some stuff
if(copy($contents,"Manga/".$_POST['mangaName']."/".$_POST['chapterName']."/".$pictureName.""))
{
if(chmod("Manga/".$_POST['mangaName']."/".$_POST['chapterName']."/".$pictureName."", 0664))
{
$errmsg0.= "File successfully copied<br/>";
}
else
{
$errmsg0.= "Error: failed to chmod file<br/>";
}
}
else
{
$errmsg0.= "Error: failed to copy file<br/>";
}
}
fclose($fileOpened);
}
}
Bu sorunla ilgili herhangi bir yardım çok takdir