I'm using the following code to zip up a MySQL dump ( text file ).
Code: Select all
$zip=new ZipArchive(); $zip->open($FileFolderLocal."Database/".$BackupName.".zip", ZipArchive::CREATE); $zip->addFile($FileFolderLocal."Database/".$BackupName.".sql",$BackupName.".sql"); $zip->close();
The zipped up file is created, but if I then browse to that folder, click on the new zip file, or try to open it, there is a delay of 20 plus seconds before it responds. Once open, its fine, and the zipped contents are intact.
Running php 7.1.7, on Windows 10.
Any ideas why the OS is struggling to open up the zip file?