title: extract .rar files to a specific directory in php
body: <p>I want to extract <strong>.rar file</strong> not <strong>.zip file</strong> using php 
  I followed this example in php manual</p>
  
  <p><a href="http://php.net/manual/en/rararchive.open.php" rel="nofollow">php manual</a></p>
  
  <p>the problem in this tutorial is not extract the files to directory,
  it prints the content of the file to browser.</p>