title: PHP - Download image from browser?
body: <p>I'm writing a little program that pulls information from a website and displays it.  The resultant page shows a grid of thumbnail images that click through to a large (original) version of the same image:</p>
  
  <pre><code>&lt;?php 
     for ($x=0; $x &lt; $imgCount; $x++) {
     echo '&lt;a class="thumbnail-link" href="' . $finalImageArray[$x] . '"&gt;';
     echo $imgs[$x];
     echo '&lt;/a&gt;';
     }
  ?&gt;
  
  $imgCount is the number of thumbnail images
  $imgs --&gt; Array of &lt;img src="http://www.example.com/path/to/each/thumbnail-img.jpg" /&gt;
  $finalImageArray --&gt; Array of http://www.example.com/path/to/original/large-img.jpg
  </code></pre>
  
  <p>Right now, I click-through the thumbnail to the large image, then right-click, 'save image as'.  I was wondering if it was possible to simplify this process, whereby clicking the thumbnail triggers the download of the larger image.</p>