Results 1 to 7 of 7
Threaded View
-
8th Feb 2012, 06:45 PM #7Member
http://www.alexa.com/siteinfo/besthostingforums.com
The rank is calculated using a combination of average daily visitors to
besthostingforums.com and pageviews on besthostingforums.com over the past 3 months. The site with the highest combination of visitors and pageviews is ranked #1.
Here's a fix:
PHP Code:function GetAlexaTrafficRank($domain)
{
$source = file_get_contents("http://www.alexa.com/siteinfo/$domain#");
$regex = '#([0-9,]+)\s*</div>\s*<div class="label">Global Rank#';
preg_match($regex, $source, $match);
$newresult = str_replace("number", "", $match[1]);
return $newresult;
}
echo "KWWHunction's Alexa Traffic Rank is: ".GetAlexaTrafficRank("besthostingforums.com").".";
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
themaCreator - create posts from...
Version 3.52 released. Open older version (or...