note 112538 added to zip.examples

From: Date: Thu, 27 Jun 2013 04:38:14 +0000
Subject: note 112538 added to zip.examples
Groups: php.notes 
Request: Send a blank email to php-notes+get-195372@lists.php.net to get a copy of this message
you can use this code for reading JAR files (java archives) JAR files use the same ZIP format, so can be easily read $zf = zip_open(realpath('D:/lucene/allinone/lucene-core.jar')); $i=1; while($zf && $ze = zip_read($zf)) { $zi[$i]['zip entry name']= zip_entry_name($ze); $zi[$i]['zip entry filesize']= zip_entry_filesize($ze); $zi[$i]['zip entry compressed size']= zip_entry_compressedsize($ze); $zi[$i]['zip entry compression method']= zip_entry_compressionmethod($ze); $zi[$i]['zip entry open status'] = zip_entry_open($zf,$ze); //$zi[$i]['zip entry file contents'] = zip_entry_read($ze,100); $i++; } print_r($zi); zip_close($zf); ---- Server IP: 59.162.86.8 Probable Submitter: 122.173.246.200 ---- Manual Page -- http://php.net/manual/en/zip.examples.php Edit -- https://master.php.net/note/edit/112538 Del: integrated -- https://master.php.net/note/delete/112538/integrated Del: useless -- https://master.php.net/note/delete/112538/useless Del: bad code -- https://master.php.net/note/delete/112538/bad+code Del: spam -- https://master.php.net/note/delete/112538/spam Del: non-english -- https://master.php.net/note/delete/112538/non-english Del: in docs -- https://master.php.net/note/delete/112538/in+docs Del: other reasons-- https://master.php.net/note/delete/112538 Reject -- https://master.php.net/note/reject/112538 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195372) next »