title: Link small images to big images
body: <p>I would like to make a gallery. I have to folder, one with small images for the thumbnails and one with big images for the lightbox. I would like to link the thumbnails to the big images. How do I do that. I found following script and I pasted a script I would like to have it look like (the problem is it doesn't work like that).</p>
  
  <p>I usually don't code with PHP thats why I ask, I guess theres a way to save the links in an array. </p>
  
  <p>The PHP I found</p>
  
  <pre><code>&lt;?php 
    foreach(glob('./images/small/*.*') as $file_small){
      echo "&lt;img src='".$file_small."' /&gt;";
    }
  ?&gt;
  </code></pre>
  
  <p>The PHP I would like</p>
  
  <pre><code> &lt;?php 
        foreach(glob('./images/small/*.*') as $file_small and glob('./images/big/*.*') as $file_big){
          echo "&lt;a href='".$file_big."'&gt;&lt;img src='".$file_small."' /&gt;&lt;/a&gt;";
        }
      ?&gt;
  </code></pre>