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 — アクティブな (オープンされた、あるいは新しく作成された) アーカイブを閉じる
説明
bool ZipArchive::close
( void
)
オープンされた、あるいは作成されたアーカイブを閉じ、 変更内容を保存します。このメソッドは、 スクリプトの最後で自動的にコールされます。
返り値
成功した場合に TRUE を、失敗した場合に FALSE を返します。
ZipArchive::close
gilthans at gmail dot com
22-Oct-2007 11:16
22-Oct-2007 11:16
