Thank you oh wise ones, thanks for your suggestions. I should have mentioned this before I am afraid the major bottleneck is not with the logic of my code or the manner in which I manage the files but with the actual adding of the files to the zip archive. I have verified this. I am testing setting the compression method to "1" to see if that helps. Any other suggestions or is there a quicker way to compress large files?
Comment on Re: How Could I Speed Up An Archive Script?
You can also exclude certain filetypes which are only a little compressable (like .jpg .pdf .mp3 .zip etc..) from compression and save them uncompressed.