Is Multiple download files possible using PHP?
We did find a code for single download. but we need it for multiple download.
can anybody help me? Thank you! :)
charvie
0
Newbie Poster
Recommended Answers
Jump to Post:O Why don't you use a ZIP folder? I don't think you can run multiple downloads.
Jump to Posti was also having such requirement once.
Then what i have done is:
create zip file of multiple files using php and then download that zip file.
Thus user can have multiple files in one zip.
Jump to Postwe are using checkboxes for the multiple download.
How do we zip the files?Hmm.. You should read this, pay attention to Example #1.
http://php.net/manual/en/function.ziparchive-addfile.php
Jump to PostHere i have attached complete code.
This code will get two image file and zip ait and download it.
run test.php file in browser and you will have one zip file.
All 13 Replies
GigsD4X
0
Light Poster
vibhaJ
126
Master Poster
charvie
0
Newbie Poster
GigsD4X
0
Light Poster
anthony88
0
Newbie Poster
vibhaJ
126
Master Poster
vibhaJ
126
Master Poster
anthony88
0
Newbie Poster
GigsD4X
0
Light Poster
anthony88
0
Newbie Poster
vibhaJ
126
Master Poster
anthony88
0
Newbie Poster
FloridaCI
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.