CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

Post #1 of 2 (739 views)
NEED SCRIPT TO UNZIP A LRGE ARCHIVE FROM THE WEB Can't Post

 
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

Post #2 of 2 (739 views)
Re: NEED SCRIPT TO UNZIP A LRGE ARCHIVE FROM THE WEB [In reply to] Can't Post

<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.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives