server spider on my website

3 replies [Last post]
studboy
Offline
Joined: Sep 2003
Posts:

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 Big grin

easy
Developer
easy's picture
Offline
Joined: Sep 2003
Posts:
server spider on my website

[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]

NINJA |¯?¯OLDVAMP¯?¯|
OldVamp's picture
Offline
Joined: Jan 2005
Posts:
server spider on my website

___

studboy
Offline
Joined: Sep 2003
Posts:
server spider on my website

thanks much!