- file_get_contents: documentation ( source)
- simplexml_load_string: documentation ( source)
- number_format: documentation ( source)
<?php
//$steamid = "76561197963758467";
$steamid = "76561198014930023";
for($i=0;$i<10;$i++) {
$nextid = number_format($steamid + ($i * 250123),0,'.','');
$profile = file_get_contents("http://steamcommunity.com/profiles/$nextid?xml=1");
$xml = simplexml_load_string($profile);
if($xml->privacyMessage) {
$msg = 'notsetup';
} else {
$msg = $xml->memberSince;
}
echo "<a href=\"http://steamcommunity.com/profiles/$nextid\">$nextid</a> - $msg<br/>";
}
?>