1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

[ask] Create Pagerank Rank Checker Tools

Discussion in 'PHP' started by zooprex, Jan 22, 2013.

  1. #1
    Hi, anyone can help me?
    I want to create Pagerank rank checker tools with PHP, but i don't know how to make this script with PHP

    Thanks
     
    zooprex, Jan 22, 2013 IP
    zetttaxco likes this.
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Search for PHP google pagerank check script and you 'll find alot :)
     
    EricBruggema, Jan 22, 2013 IP
  3. iMarcus

    iMarcus Active Member

    Messages:
    122
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Heres a function to help you get started...
    function GetPageRank($query,$host='toolbarqueries.google.com',$context=NULL) {
    $seed = "Mining PageRank is AGAINST GOOGLE'S TERMS OF SERVICE.";
    $result = 0x01020345;
    $len = strlen($query);
    for ($i=0; $i<$len; $i++) {
    $result ^= ord($seed{$i%strlen($seed)}) ^ ord($query{$i});
    $result = (($result >> 23) & 0x1ff) | $result << 9;
    }
        if (PHP_INT_MAX != 2147483647) { $result = -(~($result & 0xFFFFFFFF) + 1); }
    $ch=sprintf('8%x', $result);
    $url='http://%s/tbr?client=navclient-auto&ch=%s&features=Rank&q=info:%s';
    $url=sprintf($url,$host,$ch,$query);
    @$pr=file_get_contents($url,false,$context);
    return $pr?substr(strrchr($pr, ':'), 1):false;
    }
    PHP:
    See more here: https://github.com/phurix/pagerank/blob/master/pagerank2.php
     
    iMarcus, Jan 23, 2013 IP
  4. zooprex

    zooprex Well-Known Member

    Messages:
    134
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #4
    Ok thanks, this script work....
     
    zooprex, Apr 30, 2013 IP