server spider on my website
Can you help me? i found this topics
http://forums.excessiveplus.net/viewtopic.php?t=454
http://forums.excessiveplus.net/viewtopic.php?t=1318
And in the last he said that he added punkbuster and ping!! how i do display it in my web? tHX
[code:1]<?php
/* Example: Spider Database
*
* @date 12.07.2005
* @author easy, excessiveplus.net
**/
$url = "http://www.excessiveplus.net/getservers.php";
if ( $fp = fopen($url, "r") ) {
fgets($fp, 1024);
while ( $csv = fgetcsv($fp, 1024) ) {
list($addr, $tld, $country, $name, $player, $map, $gametype, $version, $official, $password, $punkbuster, $bots, $ping) = $csv;
printf("%02d. <img src=\"http://www.excessiveplus.net/images/flags/%s.gif\"> %s, %s (%d), %s, %d ms%s<br>\n",
++$i, strtolower($tld), $name, $player, $bots, $map, $ping, $punkbuster ? ", PunkBuster" : "");
}
fclose($fp);
}
?>[/code:1]
___
thanks much!