<? $max = 77; $site='http://site.com/'; for ($i=1;$i<=$max;$i++) { $rez = "$site$i"; echo $rez . "\r\n"; } ?>