woolyg Posted October 28, 2008 Share Posted October 28, 2008 Hi all, I'm trying to devise a way for a user to select a number of files (by multi-selecting using a web form), and for the web server to "send" all of the selected files to the user by download. After the PHP script downloads the files from the server to the user, I'd like the page to redirect to a different page. Has anyone ever dealt with this functionality? Thanks, WoolyG Link to comment https://forums.phpfreaks.com/topic/130373-downloading-multiple-files-using-php/ Share on other sites More sharing options...
dezkit Posted October 28, 2008 Share Posted October 28, 2008 You want them to be downloaded in seperate files or as one? Link to comment https://forums.phpfreaks.com/topic/130373-downloading-multiple-files-using-php/#findComment-676297 Share on other sites More sharing options...
woolyg Posted October 28, 2008 Author Share Posted October 28, 2008 Ideally separate, but if there is a way to zip them all up and send them (or something like that) that would be great... Any ideas? Link to comment https://forums.phpfreaks.com/topic/130373-downloading-multiple-files-using-php/#findComment-676300 Share on other sites More sharing options...
corbin Posted October 28, 2008 Share Posted October 28, 2008 http://php.net/zip http://php.net/gzip Link to comment https://forums.phpfreaks.com/topic/130373-downloading-multiple-files-using-php/#findComment-676313 Share on other sites More sharing options...
hellonoko Posted October 28, 2008 Share Posted October 28, 2008 You could do a series of forced downloads using header() Link to comment https://forums.phpfreaks.com/topic/130373-downloading-multiple-files-using-php/#findComment-676324 Share on other sites More sharing options...
woolyg Posted October 28, 2008 Author Share Posted October 28, 2008 Thanks Corbin - I'll get reading into zip. Hellonoko - could you elaborate? I'm not sure what you mean.. Thanks, WoolyG Link to comment https://forums.phpfreaks.com/topic/130373-downloading-multiple-files-using-php/#findComment-676326 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.