Answer the question
In order to leave comments, you need to log in
How to fix ZipArchive::ER_MULTIDISK on Windows?
Greetings. There is a code that creates a zip archive:
$zip = new \ZipArchive();
$zipName = 'archive.zip';
$zipFileName = '/path/' . $zipName;
$code = $zip->open($zipFileName, \ZipArchive::CREATE);
if (is_resource($zip)) {
// сделать что-то
} else {
echo 'Не получилось создать архив.' . $code;
exit;
}
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