title: PHP Warning ZipArchive::extractTo(): Permission denied
body: <p>I created an application, which using method extractTo() in class ZipArchive (standard in php) and I tested it on my localhost apache server on Windows 7 without any problem. But after I tried it on some unix production server, it just throws </p>
  
  <pre><code>Warning: ZipArchive::extractTo(): Permission denied in /path/to/file.php on line 27
  </code></pre>
  
  <p>I even set chmod on 0777 for every folder which is used by application, but it doesn't help.</p>
  
  <p>Do you have any idea what's wrong?</p>