WhatPulse Forums » Support » Website v » Strange stats readings Welcome back, Guest.


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange stats readings
07-03-2009, 05:36 PM
Post: #6
Strange stats readings
I put together a very basic script, it can be run via cron or manually and it'll query the xml file for your key total and add them to keys.txt. could use a database if you wanted.

Code:
<?php
$whatpulseid = "210575";

$url = "http://whatpulse.org/api/user.php?UserID=". $whatpulseid;
$what = "TotalKeyCount";
$xmlFileData = file_get_contents($url);
$xmlData = new SimpleXMLElement($xmlFileData);
$xmlData = $xmlData->$what;
$xmlData = number_format($xmlData);
$keys = $xmlData;

$file = "keys.txt";
$fh = fopen($file, 'w') or die("oh gosh golly an error!");
$Data = $keys;
fwrite($fh, $Data);
fclose($fh);
?>

api updates hourly (or so) so updating on load is stupid Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Strange stats readings - Grandmasg - 05-26-2009, 08:02 AM
Strange stats readings - The Lost Faith - 06-29-2009, 06:55 AM
Strange stats readings - Grandmasg - 06-29-2009, 03:48 PM
Strange stats readings - The Lost Faith - 06-29-2009, 09:18 PM
Strange stats readings - c-smith - 06-29-2009, 10:18 PM
Strange stats readings - citricsquid - 07-03-2009 05:36 PM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [SOLVED] Profile ranking stats inconsistent with the leaderboard Mevious 1 2,426 05-21-2016 10:47 AM
Last Post: smitmartijn
Question Missing Computer Details on My Stats maranello69 1 2,340 10-01-2015 02:32 PM
Last Post: smitmartijn
  [SOLVED] Delete specific stats [DB]Ties86 2 3,516 10-28-2014 10:21 AM
Last Post: [DB]Ties86
  Strange Application Stats n01 7 7,538 05-25-2014 07:20 PM
Last Post: Megachip
  Applications are displaying wrong stats demoman 37 37,807 02-22-2014 08:53 PM
Last Post: smitmartijn
  My stats dont match Xuekun 5 8,957 12-24-2013 03:09 AM
Last Post: sellyme
  Wrong stats? Bollivierke 9 13,719 01-08-2013 07:55 AM
Last Post: Bollivierke
  online stats and geek window difference zegsigma 1 4,749 12-25-2012 10:42 AM
Last Post: smitmartijn
  new stats commentator 2 5,197 12-24-2012 08:46 AM
Last Post: Xikeon
  Online stats page in UTF-8 Naki-BoT 2 5,257 09-23-2011 01:28 PM
Last Post: Naki-BoT

Forum Jump:


User(s) browsing this thread: 1 Guest(s)