problem on zipping big files
<p>Using this code to zip a folder and it works perfect on small files like 18-20 mb but when it comes to files like 80-90 mb it just doesnt work,</p>

<p>i though it is related to php memory settings but not sure,</p>

<pre><code>$zipfile = new zipfile();
$folder = "path/to/folder";
if (is_dir($folder)) {
 if($dir = opendir ($folder)) {
        while (false !== ($file = readdir($dir))) {
         if($file != ".") {
         if($file != "..") {
            $zipfile -&gt; addFile(file_get_contents($folder."/".$file), $file);
            }
            }
        }

        closedir($dir);
$contents = $zipfile -&gt; file();
file_put_contents($f, $contents);
}
}
</code></pre>

<p>any suggestion ?</p>

<p>thx</p>
