Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
NEED SCRIPT TO UNZIP A LRGE ARCHIVE FROM THE WEB



vitekprivet
Deleted

Aug 12, 2000, 2:32 AM


Views: 1520
NEED SCRIPT TO UNZIP A LRGE ARCHIVE FROM THE WEB

 
Hello, can please anyone help me i have database of 124MB but in .zip it is 12MB, with my connection it is impossiblt to upload 124MB, but 12 is reality, so can anyone please ive me a perl script so that i cold upload zip file and unzip it inside the server from the web.


Kanji
User / Moderator

Aug 12, 2000, 5:35 AM


Views: 1520
Re: NEED SCRIPT TO UNZIP A LRGE ARCHIVE FROM THE WEB

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>

#!/usr/bin/perl

$|++;

print "Content-Type: text/plain\n\n";
system( "/path/to/unzip", "/path/to/yourfile.zip" )&& print "Oh dear: $!";</pre><HR></BLOCKQUOTE>

If your server doesn't support unzip, ask them to install it or install it yourself.

Alternatively, you can always try to write your own unzippers with either Compress::Zlib or Archive::Zip, although you may have to install those yourself, too.