2008年(1812)
分类:
2008-05-03 20:07:44
error_reporting(7);
// #########################################
// $Id$
// Powered by: phpv team (C)2001-2006
//
// #########################################
$zip = zip_open("opera-mini-3.1.8295-advanced-int.jar");
if ($zip) {
while ($zip_entry = zip_read($zip)) {
/*
echo "Name: " . zip_entry_name($zip_entry) . "n";
echo "Actual Filesize: " . zip_entry_filesize($zip_entry) . "n";
echo "Compressed Size: " . zip_entry_compressedsize($zip_entry) . "n";
echo "Compression Method: " . zip_entry_compressionmethod($zip_entry) . "n";
*/
if(zip_entry_name($zip_entry)=="META-INF/MANIFEST.MF"){
if (zip_entry_open($zip, $zip_entry, "r")) {
$buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));
$handle = fopen("
opera-mini-3.1.8295-advanced-int.
jad","w");
fwrite($handle, $buf);
echo "$bufn";
zip_entry_close($zip_entry);
}
}
}
zip_close($zip);
}
?>
error_reporting(7);
// #########################################
// $Id$
// Powered by: phpv team (C)2001-2006
//
// #########################################
$zip = zip_open("opera-mini-3.1.8295-advanced-int.jar");
if ($zip) {
while ($zip_entry = zip_read($zip)) {
/*
echo "Name: " . zip_entry_name($zip_entry) . "n";
echo "Actual Filesize: " . zip_entry_filesize($zip_entry) . "n";
echo "Compressed Size: " . zip_entry_compressedsize($zip_entry) . "n";
echo "Compression Method: " . zip_entry_compressionmethod($zip_entry) . "n";
*/
if(zip_entry_name($zip_entry)=="META-INF/MANIFEST.MF"){
if (zip_entry_open($zip, $zip_entry, "r")) {
$buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));
$handle = fopen("
opera-mini-3.1.8295-advanced-int.
jad","w");
fwrite($handle, $buf);
echo "$bufn";
zip_entry_close($zip_entry);
}
}
}
zip_close($zip);
}
?>