ZipArchive close() function

Topics: Developer Forum
Dec 5, 2015 at 2:08 PM
I always have the error 'PHPExcel_Writer_Exception' with message 'Could not close zip file' and I think, it's because of the ZipArchive close() function. When I looked at it, it was empty. I don't know why. Is it a bug or a feature?
Dec 5, 2015 at 2:37 PM
The ZipArchieve close() function is what actually writes the zip file that's being generated.

When it gives that error, it means that it s unable to create the zip. Typically this is a result of file permissions: the ZipArchive class is unable to create a zip file in the specified location, or a zip file of the same name already exists and is opened by some other process.
Dec 5, 2015 at 2:46 PM
OK. Didn't know that. I'm gonna try it. Thank you for your help!