title: Fetch image from url using file_get_contents
body: <p>This is my php code which is only fetching the first image out of 9, although when i check the URL manually all 9 image URL formed correctly, i tried this code with CURL too, but loop is not working, let me know what I am doing wrong ?</p>
  
  <pre><code>&lt;?php
  
  for($i=2 ; $i &lt;= 10 ; $i++ ){
  header('Content-type: image/jpeg;');
  $url = "http://www.lafourchette.com/p-3.3.0/default/rate-bar-bg-".$i.".jpg";
  $mycontent = file_get_contents($url);
  echo $mycontent;
  }
  </code></pre>