Using PHP for now several years, every so often you are walking along the PHP trail when you smack into a steel wall. Not that I expected the Zip feature in PHP to be "really easy", but it couldn't be that difficult, right? Well aside from some small hiccups for a while, it wasn't tough. Let me step aside first and explain. I was working on AdaptCMS, for v1.1 I was upgrading the gallery feature. A sort by feature, a few extra templates to control the look and then the zip feature. A person clicks on download and it generates a zip you download with all the images in the gallery, in it. So getting back to it, I was using the built-in PHP ZIP function. So I got it working and built into the admin panel, before I take a break from coding I figured I would upload and take a gander. Right away I get an error, long story short the built in ZIP function is either only for PHP 5.2 and up, or a lot of parts of the ZIP function only work in 5.2 up. (built-in)  Continued...
|