How to extract rar/archive files and folders using php in windows?
<p>I like extract the rar/archive files and folder using php.
But i have tried using this script</p>

<pre><code>&lt;?php 
    $rar_file = rar_open('example.rar') or die("Can't open Rar archive");
    $entries = rar_list($rar_file); 
    foreach ($entries as $entry) { 
        echo 'Filename: ' . $entry-&gt;getName() . "\n"; 
        $entry-&gt;extract('/dir/extract/to/'); 
    } 
    rar_close($rar_file); 
?&gt;
</code></pre>
