title: PHP - create standard zip file with zlib
body: <p>I have just now discovered that my hosting server does not support the ZIP class for PHP.</p>
  
  <p>However, it has the Zlib installed and supported .</p>
  
  <p>Is there any library / function / hack / class / that will let me handle ZIP files on such a server ?</p>
  
  <p>Basically I want to create zip files. I am afraid my users will be scared of the GZ extension  and i would like to serve them ZIP extension (that they will open normally on win systems) ?</p>
  
  <p>(please do not tell me to change hosting - I already know I have to , but it will take time and the thing is quite urgent..)</p>
  
  <p><strong>UPDATE I</strong> . thanks to @Mark Baker - i was able to extract a file with the pclzip class and this simple code </p>
  
  <pre><code>&lt;?php
  
   include('pclzip.lib.php');
    $archive = new PclZip('wp.zip');
    $location = $_SERVER['DOCUMENT_ROOT'];
    if ($archive-&gt;extract(PCLZIP_OPT_PATH, $location ,
                          PCLZIP_OPT_REMOVE_PATH, 'install/release') == 0) {
      die("Error : ".$archive-&gt;errorInfo(true));
    }
  ?&gt;
  </code></pre>
  
  <p>(I just wanted to post the code here , it was too lng for comment ,  and I did not wanted to post another answer  )</p>
  
  <p>Still did not tested the creation, but if it works the same - then I really want to kiss the developers of that class ! :-)</p>