Activity Stream
48,167 MEMBERS
61059 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3
  1.     
    #1
    Member

    Exclamation Alexa Rank Checker

    I used this code For The Alexa Rank Checking

    Code: 
    <?php
    
    function alexaRank($domain){
        $remote_url = 'http://data.alexa.com/data?cli=10&dat=snbamz&url='.trim($domain);
        $search_for = '<POPULARITY URL';
        if ($handle = @fopen($remote_url, "r")) {
            while (!feof($handle)) {
                $part .= fread($handle, 100);
                $pos = strpos($part, $search_for);
                if ($pos === false)
                continue;
                else
                break;
            }
            $part .= fread($handle, 100);
            fclose($handle);
        }
        $str = explode($search_for, $part);
        $str = array_shift(explode('"/>', $str[1]));
        $str = explode('TEXT="', $str);
    
        return $str[1];
    }
    
    echo alexaRank("besthostingforums.com");
    
    ?>
    When I Loaded The Page ....
    Got This

    Code: 
    2242" SOURCE="panel
    I Was Expecting Only the Number 2242
    How To Remove " SOURCE="panel
    Matrix4u Reviewed by Matrix4u on . Alexa Rank Checker I used this code For The Alexa Rank Checking <?php function alexaRank($domain){ $remote_url = 'http://data.alexa.com/data?cli=10&dat=snbamz&url='.trim($domain); $search_for = '<POPULARITY URL'; if ($handle = @fopen($remote_url, "r")) { while (!feof($handle)) { Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Code: 
    ...
        $str = explode('TEXT="', $str);
        $str = explode('"', $str[1]);
    
        return $str[0];
    ...

  4.     
    #3
    Member
    Thanks Man ...
    Worked Like A Charm

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Page Rank + Alexa Checker - Fast Action
    By Faizann20 in forum Webmaster Resources
    Replies: 3
    Last Post: 26th Sep 2012, 01:46 AM
  2. [Selling] Great Alexa Rank service to boost your alexa rank to 10k soon
    By traffic4u in forum Completed Transactions
    Replies: 8
    Last Post: 23rd Feb 2012, 10:12 AM
  3. is there a tool to test a list of sites alexa rank and google rank
    By elpirata in forum Webmaster Discussion
    Replies: 2
    Last Post: 23rd Jun 2011, 05:54 AM
  4. Alexa rank !! why this?
    By pak in forum Technical Help Desk Support
    Replies: 10
    Last Post: 3rd Apr 2010, 02:21 AM

Tags for this Thread

BE SOCIAL