Tempory Zip Creation with Archive::Zip or other PERL Module

60 pts.
Tags:
Apache
CGI
Linux servers
Perl
Zip
Is it possible with PERL to create a temporary zip file that is just served up? (vs. create zip, provide link, delete file)  I am not looking for code but more a point in the right direction to do something on the fly.

I do have shell access.

For example let's say that I have a bunch of directories of photos. Instead of someone having to click each file in a dir to download they can click a link to 'create zip' and download the entire directory. No problem, I can write zip scripts all day but I don't want to keep the zip file on the server or have to go back a delete if there is a better way to accomplish this with a temp dir or stream.

Any suggestions?



Software/Hardware used:
PERL, Linux Enterprise, Apache
ASKED: August 21, 2009  2:09 AM
UPDATED: January 24, 2010  3:01 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

<a href=”http://search.cpan.org/~pmqs/Compress-Zlib-1.42/Zlib.pm”>This</a> will let you zip a file in memory.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following