Logan wrote:
> I am currently loooking for a script that can/will zip a full
> directory on
> the fly.
>
> I am not sure if there is a cgi/perl script that can do this I don't
> want to have to download any programs.
>
> Please forward any info on this subject to logankrienke RemoveThis @hotmail.com
You post on usenet, you read on usenet
> thanks
I do this thousands of times per day at <a style='text-decoration: underline;' href="http://ipo-australia.com/data" target="_blank">http://ipo-australia.com/data</a>
Simple method 1:
print "Content-Type: application/zip\n\n";
Use the "system" call to call the linux zip function
Write resulting zip file to to stdout
Simple method 2:
print "Content-Type: application/zip\n\n";
Use the Perl Archive::Zip module (available from cpan.org) to generate the
zip file in RAM
Write resulting zip file to to stdout
Complex method (what I use):
print "Content-Type: application/zip\n\n";
Note that the zip content header is at the end.
Hack the Perl Archive::Zip module to write to stdout after each file has
been added ie lazy evaluation
More assistance: $80/hour
gtoomey<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: script to zip