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 ?
<?php
for($i=2 ; $i <= 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;
}
1 Answer