I am creating an image gallery/photo album and was wondering if there was a way to pass variables to a PHP function and have it zip up the contents for you so that the user can easily download whole albums at a time. Thanks
For reading zip-files, one can use the ZIP-functions included in PHP (see http://www.php.net/manual/en/ref.zip.php).
If you want to create zip-files (I figure that is what you want to do?), you can use the zipfile-class. I've never used it, but it's included with phpMyAdmin, so I guess you can find some code there which can tell you how to use it. You can find phpMyAdmin at http://www.phpmyadmin.net or http://phpmyadmin.sourceforge.net/. The file you're looking for is called zip.inc.php.
Good luck, Olle
Good tip spirp. I didn't know that myself too. I will have it in mind for my future projects!!!
Thanks
Thanks for the help. I already have phpMyAdmin, so I'll get started on it soon. I searched for the file zip.inc.php and it wasn't there. Apparently it is called zip.lib.php for all those who might want to take a look. Thanks again!