I posted the question on a msgboard and someone told me about SNOOPY and wrote a small script that would read www.sitemeter.com 's who's online list and dislplay the number of people using your SNOOPY.
This is the small files he wrote:
[WHOISONLINE.PHP]
<?php
include ("snoopy.class.php");
$url = "http://www.sitemeter.com/default.asp?action=stats&site=sm4camarosource&report=15";
$online_count = 0;
// Create a new instance of the Snoopy Class.
$snoopy = new Snoopy;
// Fetch all the links from the desired website.
$snoopy->fetchlinks($url); // Fetch all the links from the given URI.
// Now we will sift through all the links to find just the one we need.
$haystack = $snoopy->results; // This is an array containing all the links from fetchlinks.
reset($haystack);
while (list($key, $val) = each($haystack))
{
if (stristr($val,"&visit="))
{
$online_count++;
}
}
//display info
echo "Users online : $online_count";
?>
I placed it (and ALL the snoopy files) into the http://camarosource.ca/php/snoopy/
http://camarosource.ca/php/snoopy/whoisonine.php
But when you run it, it says "Users online : 0"
Obviously it is not reading the who's online list. I am guessing it is perhaps because you have to log INTO sitemeter? If this is the case, how would I make it so it logs in? In order to log into your Sitemeter account to see your site's stats, you have to enter your username and password.
Please help.
Thanks a LOT! :-)