Some pretty useless replies here, but I use this php script to retrieve my live global score instead of waiting hours for it to refresh:
<?
//Pretend you're the Battlefield 2 Client
ini_set(user_agent,"GameSpyHTTP/1.0");
//Get the PID from a nickname
$query_url = 'http://bf2web.gamespy.com/ASP/searchforplayers.aspx?nick=' . $_GET['nick'] . '&where=b&sort=a&debug=txs&transpose=0';
$results = @file($query_url);
if(IsSet($results) && is_array($results)) {
$descriptions = explode("\t", $results[3]);
$values = explode("\t", $results[4]);
for($i=0;$i<count($values);$i++) {
$v[$descriptions[$i]] = $values[$i];
}
?>
<?
}
?>
<?
//Pretend you're the Battlefield 2 Client again
ini_set(user_agent,"GameSpyHTTP/1.0");
//Get the score from the PID
$query_url = 'http://bf2web.gamespy.com/ASP/getplayerinfo.aspx?pid=' . $v['pid'] . '&info=per*,cmb*,twsc,cpcp,cacp,dfcp,kila,heal,rviv,rsup,rpar,tgte,dkas,dsab,cdsc,rank,cmsc,kick,kill,deth,suic,ospm,klpm,klpr,dtpr,bksk,wdsk,bbrs,tcdr,ban,dtpm,lbtl,osaa,vrk,tsql,tsqm,tlwf,mvks,vmks,mvn*,vmr*,fkit,fmap,fveh,fwea,wtm-,wkl-,wdt-,wac-,wkd-,vtm-,vkl-,vdt-,vkd-,vkr-,atm-,awn-,alo-,abr-,ktm-,kkl-,kdt-,kkd-';
$results = @file($query_url);
if(IsSet($results) && is_array($results)) {
$descriptions = explode("\t", $results[3]);
$values = explode("\t", $results[4]);
for($i=0;$i<count($values);$i++) {
$v[$descriptions[$i]] = $values[$i];
}
?>
<? echo $v['scor']; ?>
<?
}
?>
If you copy that to a text file and save it as file.php, and upload it to a webserver that supports php you can run it like this:
http://www.website.com/file.php?nick=Blazin.UK^ The page will then run the code and echo the global score for that user. That is just the global score though, you can echo a ton of things from different feeds. I commented it to help you better understand it a little better, but if you are familiar with php it shouldnt be hard to see what's going on.
Of course that php code might be a bit bloated, so that is where Chuy or someone else could come in and trim it... but the code works.
Here is a good wiki that goes in depth about the BF2 stats feeds:
http://bf2.fun-o-matic.org/index.php/BF2StatsThe feed basically comes from a webpage, except you need to be identified as a 'gamespy client' to see that page or else you simply cant see it. So using firefox or IE to view it wont work. That is why you see the php code changing your user agent: ini_set(user_agent,"GameSpyHTTP/1.0");
Let me know if you need anymore info about it... glad to help