Page 1 of 1

Force download multiple files in a zip archive using PHP

Posted: Thu Sep 09, 2010 11:10 am
by anas444
In this post, I’ll show you how can you download the multiples files in a zip archive using PHP. I’ve made a function in PHP where you’ve to pass the parameters the array of files to be zipped, the second parameter is file name as which zip archive file has to be downloaded and finally the path of files where files to be zipped are located.(assuming that they are all in same folder)