Archive for January, 2007

Quick and dirty SETI@home stats

Monday, January 15th, 2007

I have used the WAP interface for getting the stats, which are placed in an array and you can choose what to display on your own home page. All you need is to change the id number in the URL and you are set to go!

<?php
$stat = file_get_contents(”http://setiathome.berkeley.edu/userw.php?id=59935″) ;
$stat = str_replace(”<br/>”, ”|”, $stat);
$stat = strip_tags($stat);
$stats = explode(”|”, $stat);
/*
[0] => SETI@home 
[1] => Account Data  [2] => for Tabibazar 
[3] => Time: 15 Jan 2007 01:54:12 UTC 
[4] => User TotCred: 4,945.62 
[5] => User AvgCred: 0.16 
[7] => Team: Spread Firefox 
[8] => Team TotCred: 7,841,248.97 
[9] => Team AvgCred: 8,265.01
*/
echo $stats[4];
?>

Share This

Close
E-mail It