|
Zipping files and forcing download
I am working on a script that creates .xml files to a temporary directory on the server and then forces the download. Works great with one file but I would like to be able to create two files and--this is where I need some help--zip them into one file so that I can force the download of that one zipped file.
Should I be using gzopen(); and gzwrite();? If so, how do I write multiple files to the one gz file?
Also, does PHP 4.3.11 allow this by default or does it need to be compiled for this support?
Thanks for the help.
|