title: Creating zip archive in php
body: <p>I'm trying to creat zip archives with php using this class: <a href="http://davidwalsh.name/create-zip-php" rel="nofollow">Site</a></p>
  
  <p><strong>The first problem:</strong></p>
  
  <p>in the array of <code>$files_to_zip</code>. I need to add the path of the app in all of the dates, how i do this?</p>
  
  <p>Convert this array:</p>
  
  <pre><code>$files_to_zip = array(
  'preload-images/1.jpg',
  'preload-images/2.jpg',
  'preload-images/5.jpg',
  'kwicks/ringo.gif',
  'rod.jpg',
  'reddit.gif'
    );
  </code></pre>
  
  <p>To this: </p>
  
  <pre><code>$files_to_zip = array(
  'path/to/app/preload-images/1.jpg',
  'path/to/app/preload-images/2.jpg',
  'path/to/app/preload-images/5.jpg',
  'path/to/app/kwicks/ringo.gif',
  'path/to/app/rod.jpg',
  'path/to/app/reddit.gif'
    );
  </code></pre>
  
  <p><strong>The second problem:</strong></p>
  
  <p>When the ZIP was created, they create every folder of the path of the archive.
  Example: ZIP > folder "path" > folder "to" > folder "app" > archives.</p>
  
  <p>I want just the archives in the ZIP.</p>
  
  <p>I don't know where I change the code or what is wrong.
  Help pls?</p>