php zip file - add new_ziparchive?
<p>I need to create a zzip file , i tried a script but i get an error message:</p>

<pre><code>Warning: ZipArchive::addFile() [ziparchive.addfile]: Invalid or unitialized Zip object
</code></pre>

<p>this is my script:</p>

<pre><code>&lt;?php
$path = "./downloads/";

$file = $_FILES["file"]["name"];

$zip=new ZipArchive;

$zip-&gt;addFile('./downloads/', $_FILES["file"]["name"]); 
?&gt;
</code></pre>
