title: how to configure the php RAR Archive installer windows
body: <pre><code>&lt;?php $rar_arch = RarArchive::open('filename.rar'); if ($rar_arch === FALSE)
  die("Failed opening file");
  $entries = $rar_arch-&gt;getEntries(); if ($entries === FALSE)
  die("Failed fetching entries");
  echo "Found " . count($entries) . " extract\location";
  if (empty($entries))
  die("No valid entries found.");
  $stream = reset($entries)-&gt;getStream();
  if ($stream === FALSE)
  die("Failed opening first file");
  $rar_arch-&gt;close();
  echo "Content of first one follows:\n";
  echo stream_get_contents($stream);
  fclose($stream); ?&gt; 
  </code></pre>
  
  <p><a href="http://php.net/manual/en/rar.installation.php" rel="nofollow">http://php.net/manual/en/rar.installation.php</a></p>
  
  <p>Erorr is:</p>
  
  <pre><code>Fatal error: Class 'RarArchive' not found in C:\Zend\Apache2\htdocs\CSV\example.php on line 2
  </code></pre>