View Single Post
Old 11-17-2005, 11:15 AM   #1 (permalink)
phpjeff
Registered User
 
Join Date: May 2002
Location: Anaheim, CA
Posts: 3
phpjeff is on a distinguished road
Send a message via AIM to phpjeff
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.
phpjeff is offline   Reply With Quote