Server-side zipping


I’m working on a file download system, where the user chooses what files they want from a list of files that are stored on the server. Is it possible to create a zip file dynamically on the server containing only the requested files and have them download that zip file and then delete the zip file from the server.

Just want to know if this is possible before I start trying to put it together.:sigh:

any ideas about how may be best to go about this would be a help too.