Answer the question
In order to leave comments, you need to log in
Why does the Invalid or unitialized Zip object error occur?
After downloading the file, I try to archive it using the ZipArchive class and get an error:
Warning: ZipArchive::addFile(): Invalid or unitialized Zip object in ... on line 48
Warning: ZipArchive::close(): Invalid or unitialized Zip object in ... on line 49
$zip->addFile($_FILES['file']['tmp_name'][$i], $fileName1.'.'.get_ext($_FILES['file']['name'][$i]));
$zip->close();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question