title: Created zip file contain folder structure using tar command in PHP
body: <p>I am trying to create a zip of all files in abc folder with the name filename.zip using following command in php like:</p>
  
  <pre><code>exec(tar -cvf filename.zip /home/public_html/uploads/abc/)
  </code></pre>
  
  <p>but the created zip has the folder structure home/public_html/uploads. Please help me to get rid of these folders.</p>