force download help

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!

Moderator: General Moderators

Post Reply
pathfinder80
Forum Newbie
Posts: 2
Joined: Thu Aug 23, 2007 12:03 pm

force download help

Post by pathfinder80 »

I have a php application where I have to force download two report files on clicking a submit button. I am able to force download one file, but don't know how to download two files, one after the other. Do anybody have idea regarding this....
Thanks in advance...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It's not exactly possible.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

You could... try compressing the files into one package. I'm sure your users would appreciate the convenience of a single download, and possibly the slight decrease in file size.
pathfinder80
Forum Newbie
Posts: 2
Joined: Thu Aug 23, 2007 12:03 pm

Post by pathfinder80 »

superdezign ,

Could you please let me know how to compress the files into one package.

Thanks!
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

*.7z, *.zip, *.rar, *.ace, *.gz, *.tar.gz, etc.

Get a compression program. 7zip is good and free.
Post Reply