title: PHP open and read xz file
body: <p>For a plain text file I'm using:</p>
  <pre><code>$fh = fopen(&quot;log.txt&quot;, 'r') or die($php_errormsg);
  while (!feof($fh)) {
     $line = fgets( $fh, 4096 );
     echo $line;
  }
  </code></pre>
  <p>Is there a similar way to do this with a .xz file ?
  I've googled and I'm not finding much related to it.</p>
  <p>Basically I need to be able to read through a .xz compressed file in the same way I do with a text file.</p>
  <p>Thanks</p>