PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm looking to find a way to download multiple files at a time. I've got my user to a page where they can check multiple boxes and then click the "download these files(s)" button. Now what I'd to happen is that the files all download into some predetermined area (the user will have no choice as to where things get to download to)
I can't seem to google any kind of script to do this. Does anyone here know of a way to do this? Thanks in advance to all that answer
You cant force a file onto the user's machine, given that kind of ability some developer could write a script to download a virus to a users machine without their permission.
For multiple file downloads you could have each download open in a new window, for example when they check file 1 and file 2 the following code gets run:
use javascript to open download.php?file=1 and download.php?file=2 so they get 2 pop up windows
Both answers sound pretty doable... let me see what I can do with them... Zipping sounds good since it's all one download and it would be a smaller file that they might possibly recieve than a lot of larger ones... I'll start googling php zipping. Thanks a mill you two
I was going to suggest zipping the files but I have no experience working with zip files with php so I didn't even know if it was possible... php continues to amaze me