title: Making a temporary dir for unpacking a zipfile into
body: <p>I have a script that checks a zipfile containing a number of matching PDF+textfiles. I want to unpack, or somehow read the textfiles from the zipfile, and just pick out some information from the textfile to see that the file version is correct.</p>
  
  <p>I was looking at the <code>tempnam()</code> function to find an equivalent to make a tempdir, but maybe someone has a better solution for the problem.</p>
  
  <p>The indexfile looks something like this. (<code>-&gt;</code> is for TAB char). 
  I have made the function to extract the version from the textfile and to check if its correct already, its only the unpacking, tmpdir or some other solution im looking for.</p>
  
  <pre><code>1000-&gt;filename-&gt;file version-&gt;program version-&gt;customer no-&gt;company no-&gt;distribution
  2000-&gt;pagenumber-&gt;more info-&gt;more info-&gt;...
  </code></pre>