note 99131 deleted from rarentry.extract by danbrown

From: Date: Fri, 30 Jul 2010 16:35:27 +0000
Subject: note 99131 deleted from rarentry.extract by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171244@lists.php.net to get a copy of this message
Note Submitter: matthew at dps dot uk dot com ---- I couldn't get the example of extracting files to work, had to change it to :- $rar_file = rar_open($rarfile); if ($rar_file === FALSE) die("Could not open RAR $rarfile archive."); $list = rar_list($rar_file); if ($list === FALSE) die("Could retrieve entries in RAR file $rarfile"); foreach($list as $entry) { $xentry = rar_entry_get($rar_file, $entry->getName()); $xentry->extract($dest); // extract to the current dir } rar_close($rar_file); Hope this helps

« previous php.notes (#171244) next »