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
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($
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.