Link to home
Start Free TrialLog in
Avatar of akzah
akzah

asked on

Archive Zip Module

Hi

I am using the archive zip module too view whats inside zip files. Using this code:

 use Archive::Zip;
use Archive::Zip::MemberRead;

  $zip = new Archive::Zip("testdate.zip");
  $fh  = new Archive::Zip::MemberRead($zip, "testdate.txt");
  while (defined($line = $fh->getline()))
  {
      print $fh->input_line_number . "#: $line\n";
  }  $read = $fh->read($buffer, 32*1024);
  print "Read $read bytes as :$buffer:\n";

Though if the file is not my sever, but another address example
  $zip = new Archive::Zip("http://www.xx.com/test/testdate.zip");

Then it does'nt work!, anyone know how to get it get to work?

Thanks

Akbar
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial