title: "zip I/O error: Permission denied" with exec command
body: <p>I'm trying to recursively zip a directory with the <code>exec</code> command, first of all I do not need the <code>zipArchive</code> class for outline reasons however when I pass this command in the <code>exec</code> command I get an error saying:</p>
  
  <blockquote>
    <p>zip I/O error: Permission denied</p>
  </blockquote>
  
  <p>For this command:</p>
  
  <pre><code>cd ../../; zip -P temppassword html/acp/backup/filename.zip -r html/ 2&gt;&amp;1
  </code></pre>
  
  <p>It starts out in the script located <code>/var/www/html/acp/config.php</code> and it will move to the <code>www</code> directory after <code>cd ../../</code>, then zip up the <code>html</code> directory and store the zip file into <code>/var/www/html/acp/backup/</code> directory. But unfortunately I get a permission error. How can I allow the command to pass through with "permission"? </p>