zip multiple file on the fly and download it as a zip folder php
Posted
by
mishxpie
on Stack Overflow
See other posts from Stack Overflow
or by mishxpie
Published on 2013-10-18T21:50:24Z
Indexed on
2013/10/18
21:54 UTC
Read the original article
Hit count: 510
I understand that I can zip multiple file and download it as zip when the files are already exists on ther server. like this.
My question is, I have a dropdown list that prompt user download different section of a big form on the fly so I have header below for download it individually.
header("Content-type: text/plain");
header("Content-Disposition: attachment; filename=op_summary.lyx");
I need to add another function to download them all at ones. How can I implement it? Should I have download them in the server before zipping it and download to client?
I will also need a checkbox fundtion that pick multiple files according whichever files that user select.
Any suggestion will be helpful.
© Stack Overflow or respective owner