PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ZipArchive::deleteIndex> <ZipArchive::addFromString
Last updated: Fri, 14 Nov 2008

view this page in

ZipArchive::close

(No version information available, might be only in CVS)

ZipArchive::closeFerme l'archive active (ouverte ou nouvellement créée)

Description

bool ZipArchive::close ( void )

Ferme une archive ouverte ou nouvellement créée et sauvegarde les modifications. Cette méthode est appelée automatiquement à la fin du script.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.



add a note add a note User Contributed Notes
ZipArchive::close
gilthans at gmail dot com
22-Oct-2007 08:16
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::deleteIndex> <ZipArchive::addFromString
Last updated: Fri, 14 Nov 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites