note 100407 added to function.rar-extract

From: Date: Thu, 14 Oct 2010 03:31:04 +0000
Subject: note 100407 added to function.rar-extract
Groups: php.notes 
Request: Send a blank email to php-notes+get-173206@lists.php.net to get a copy of this message
Actually the name field in RarEntry are private, you must use the getter, the result code for extract all content in a rar file is like this $rar_file = rar_open($compresed_file); $list = rar_list($rar_file); foreach ($list as $file) { $entry = rar_entry_get($rar_file, $file->getName()); $entry->extract($dest); } rar_close($rar_file); ---- Server IP: 74.208.45.212 Probable Submitter: 201.231.226.165 (proxied: 201.231.226.165) ---- Manual Page -- http://www.php.net/manual/en/function.rar-extract.php Edit -- https://master.php.net/note/edit/100407 Del: integrated -- https://master.php.net/note/delete/100407/integrated Del: useless -- https://master.php.net/note/delete/100407/useless Del: bad code -- https://master.php.net/note/delete/100407/bad+code Del: spam -- https://master.php.net/note/delete/100407/spam Del: non-english -- https://master.php.net/note/delete/100407/non-english Del: in docs -- https://master.php.net/note/delete/100407/in+docs Del: other reasons-- https://master.php.net/note/delete/100407 Reject -- https://master.php.net/note/reject/100407 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173206) next »