$url = 'http://pic6.picturetrail.com/VOL144/1661164/8615162/';
for ($i = 124823600; $i <= 124823700; $i++)
{
$file = $url . $i . '.jpg';
if (@fopen($file, 'r')) {echo '<a href="' . $file . '">' . $file . '</a>';}
else {echo $file . ' not found';}
echo '<br>';
}