Welcome Guest, Not a member yet? Register   Sign In
Is it possible to add files to an existing zip archive with CI?
#1

[eluser]machouinard[/eluser]
I'm working with a photo gallery, and would like to be able to archive images on a regular basis. Images are currently stored in a Year/Month/filename format beneath directories such as Original and Resized.

This is a new 'learning project' and there are only files in 2011/Dec and 2012/Jan. I can archive all the files from a given month, but it seems as though it would make sense to run an archive function, say daily, and simply add new images to an existing archive for that month. I imagine I'd at least run into some memory issues trying to create a zip from several hundred files by the time the end of the month rolls around.

So is it possible to do this with CI's Zip Encoding Class, or do I just need to use PHP's ZipArchive directly? Is there an archive class anyone would recommend using over PHP's ZipArchive?

Thanks,
Mark





Theme © iAndrew 2016 - Forum software by © MyBB