Don't forget to check the zip isn't empty, folks - otherwise the zip won't be created at all, and the server will issue no warning!
I used a certain loop to add files to the zip, and struggled with permissions and documentation for hours before I realize the loop ended up adding no file, even though addFile WAS called, but on a non-existent file.
This might be the reason your zips aren't popping up.
ZipArchive::close
(No version information available, might be only in CVS)
ZipArchive::close — Close the active archive (opened or newly created)
Descrição
bool ZipArchive::close
( void
)
Close opened or created archive and save changes. This method is automatically called at the end of the script.
Valor Retornado
Retorna TRUE em caso de sucesso ou FALSE em falhas.
ZipArchive::close
gilthans at gmail dot com
22-Oct-2007 08:16
22-Oct-2007 08:16
