Pagerank checker script problem


Back to google pagerank.


*ralfie    (2008-11-05)
Pagerank checker script problem

Hi,

I try to use the free pagerank checker class from Rick Lim, but I encounter this problem under PHP 5 (EasyPHP 2.0b1, Windows Vista) while it works fine under PHP 4 on a previous version of EasyPHP :

Fatal error: Call to undefined method rank::functions() in C:Program FilesEasyPHP 2.0b1wwwfunctions.class.php on line 145


The line that causes the problem :

function __construct () {
$this->functions();
}


Here is the Pagerank checker script : rank.class.php

<?php
include 'functions.class.php';
class rank extends functions {
var $url;
var $pagerank;
var $alexa_rank;
var $backlinks = array('google' => '', 'yahoo' => '', 'msn' => '', 'altavista' => '', 'alltheweb' => '');
var $dmoz;

#start
function __start () {
$this->url = preg_replace('/http:///si', '', $this->url);
$this->pagerank = $this->__pagerank();
$this->alexa_rank = $this->__alexa_rank();
$this->backlinks['google'] = $this->__backlinks('google');
$this->backlinks['yahoo'] = $this->__backlinks('yahoo');
$this->backlinks['msn'] = $this->__backlinks('msn');
$this->backlinks['altavista'] = $this->__backlinks('altavista');
$this->backlinks['alltheweb'] = $this->__backlinks('alltheweb');
}

function cleanup () {
$this->pagerank = $this->format_number($this->pagerank);
$this->alexa_rank = $this->format_number($this->alexa_rank);
$this->backlinks['google'] = $this->format_number($this->backlinks['google']);
$this->backlinks['yahoo'] = $this->format_number($this->backlinks['yahoo']);
$this->backlinks['msn'] = $this->format_number($this->backlinks['msn']);
$this->backlinks['altavista'] = $this->format_number($this->backlinks['altavista']);
$this->backlinks['alltheweb'] = $this->format_number($this->backlinks['alltheweb']);
}

#pagerank
function __pagerank () {
$url = 'info:' . urldecode($this->url);
$checksum = $this->checksum($this->strord($url));
$url = 'http://www.google.com/search?client=navclient-auto&ch=6' . $checksum . '&features=Rank&q=' . $url;
$v = file_get_contents($url);
preg_match('/Rank_([0-9]+):([0-9]+):([0-9]+)/si', $v, $r);
return ($r[3]) ? $r[3] : '0';
}

#alexa_rank
function __alexa_rank () {
$url = 'http://data.alexa.com/data?cli=10&dat=snbamz&url=' . urlencode($this->url);
$v = file_get_contents($url);
preg_match('/<popularity url="(.*?)" TEXT="([0-9]+)"/>/si', $v, $r);
return ($r[2]) ? $r[2] : '0';
}

#backlinks
function __backlinks ($engine) {
switch ($engine) {
#google
case 'google':
$url = 'http://www.google.com/search?q=link%3A' . urlencode($this->url);
$v = file_get_contents($url);
preg_match('/of about <b>([0-9,]+)</b>/si', $v, $r);
return ($r[1]) ? str_replace(',', '', $r[1]) : '0';
break;
#yahoo
case 'yahoo':
$url = 'http://search.yahoo.com/search?p=links%3A' . urlencode($this->url);
$v = file_get_contents($url);
preg_match('/of about ([0-9,]+)/si', $v, $r);
return ($r[1]) ? str_replace(',', '', $r[1]) : '0';
break;
#msn
case 'msn':
$url = 'http://search.msn.com/results.aspx?q=link%3A' . urlencode($this->url);
$v = file_get_contents($url);
preg_match('/of ([0-9,]+) results/si', $v, $r);
return ($r[1]) ? str_replace(',', '', $r[1]) : '0';
break;
#altavista
case 'altavista':
$url = 'http://www.altavista.com/web/results?q=link%3A' . urlencode($this->url);
$v = file_get_contents($url);
preg_match('/found ([0-9,]+) results/si', $v, $r);
return ($r[1]) ? str_replace(',', '', $r[1]) : '0';
break;
#alltheweb
case 'alltheweb':
$url = 'http://www.alltheweb.com/search?q=link%3A' . urlencode($this->url);
$v = file_get_contents($url);
preg_match('/<span class="ofSoMany">([0-9,]+)</span>/si', $v, $r);
return ($r[1]) ? str_replace(',', '', $r[1]) : '0';
break;
}
}
}
?>


functions.class.php

<?php
class functions {
function to_int_32 (&$x) {
$z = hexdec(80000000);
$y = (int) $x;
if($y ==- $z && $x <- $z){
$y = (int) ((-1) * $x);
$y = (-1) * $y;
}
$x = $y;

function zero_fill ($a, $b) {
$z = hexdec(80000000);
if ($z & $a) {
$a = ($a >> 1);
$a &= (~$z);
$a |= 0x40000000;
$a = ($a >> ($b - 1));
} else {
$a = ($a >> $b);
}
return $a;
}
function mix($a, $b, $c) {
$a -= $b; $a -= $c; $this->to_int_32($a); $a = (int)($a ^ ($this->zero_fill($c,13)));
$b -= $c; $b -= $a; $this->to_int_32($b); $b = (int)($b ^ ($a<<8));
$c -= $a; $c -= $b; $this->to_int_32($c); $c = (int)($c ^ ($this->zero_fill($b,13)));
$a -= $b; $a -= $c; $this->to_int_32($a); $a = (int)($a ^ ($this->zero_fill($c,12)));
$b -= $c; $b -= $a; $this->to_int_32($b); $b = (int)($b ^ ($a<<16));
$c -= $a; $c -= $b; $this->to_int_32($c); $c = (int)($c ^ ($this->zero_fill($b,5)));
$a -= $b; $a -= $c; $this->to_int_32($a); $a = (int)($a ^ ($this->zero_fill($c,3)));
$b -= $c; $b -= $a; $this->to_int_32($b); $b = (int)($b ^ ($a<<10));
$c -= $a; $c -= $b; $this->to_int_32($c); $c = (int)($c ^ ($this->zero_fill($b,15)));
return array($a,$b,$c);
}
function checksum ($url, $length = null, $init = 0xE6359A60) {
if (is_null($length)) {
$length = sizeof($url);
}
$a = $b = 0x9E3779B9;
$c = $init;
$k = 0;
$len = $length;
while($len >= 12) {
$a += ($url[$k+0] + ($url[$k+1] << 8) + ($url[$k+2] << 16) + ($url[$k+3] << 24));
$b += ($url[$k+4] + ($url[$k+5] << 8) + ($url[$k+6] << 16) + ($url[$k+7] << 24));
$c += ($url[$k+8] + ($url[$k+9] << 8) + ($url[$k+10] << 16) + ($url[$k+11] << 24));
$mix = $this->mix($a,$b,$c);
$a = $mix[0]; $b = $mix[1]; $c = $mix[2];
$k += 12;
$len -= 12;
}
$c += $length;
switch($len) {
case 11: $c += ($url[$k + 10] << 24);
case 10: $c += ($url[$k + 9] << 16);
case 9: $c += ($url[$k + 8] << 8);
case 8: $b += ($url[$k + 7] << 24);
case 7: $b += ($url[$k + 6] << 16);
case 6: $b += ($url[$k + 5] << 8);
case 5: $b += ($url[$k + 4]);
case 4: $a += ($url[$k + 3] << 24);
case 3: $a += ($url[$k + 2] << 16);
case 2: $a += ($url[$k + 1] << 8);
case 1: $a += ($url[$k + 0]);
}
$mix = $this->mix($a, $b, $c);
return $mix[2];
}
function strord($string) {
for($i = 0; $i < strlen($string); $i++) {
$result[$i] = ord($string{$i});
}
return $result;
}
//
//
//
function format_number ($number='', $divchar = ',', $divat = 3) {
$decimals = '';
$formatted = '';
if (strstr($number, '.')) {
$pieces = explode('.', $number);
$number = $pieces[0];
$decimals = '.' . $pieces[1];
} else {
$number = (string) $number;
}
if (strlen($number) <= $divat)
return $number;
$j = 0;
for ($i = strlen($number) - 1; $i >= 0; $i--) {
if ($j == $divat) {
$formatted = $divchar . $formatted;
$j = 0;
}
$formatted = $number[$i] . $formatted;
$j++;
}
return $formatted . $decimals;
}
function a1149154365 () {
$this->a1149154365();
}
function a1206352297 () {
$this->a1206352297();
}
function a1383382467 () {
$this->a1383382467();
}
function a1194196221 () {
$this->a1194196221();
}
function a1292845929 () {
$this->a1292845929();
}
function a1074728645 () {
$this->a1074728645();
}
function a1289598711 () {
$this->a1289598711();
}
function a1169299252 () {
$this->a1169299252();
}
function a1406842300 () {
$this->a1406842300();
}
function a1262993656 () {
$this->a1262993656();
}
function a1280534873 () {
$this->a1280534873();
}
function a1174485307 () {
$this->a1174485307();
}
function a1403698970 () {
$this->a1403698970();
}
function a1372831517 () {
$this->a1372831517();
}
function __construct () {
$this->functions();
}
function a1401054826 () {
$this->a1401054826();
}
function a1326644341 () {
$this->a1326644341();
}
function a1295120284 () {
$this->a1295120284();
}
function a1243184111 () {
$this->a1243184111();
}
function a1280038555 () {
$this->a1280038555();
}
function a1262029497 () {
$this->a1262029497();
}
function a1083121947 () {
$this->a1083121947();
}
function a1194444349 () {
$this->a1194444349();
}
function a1018449465 () {
$this->a1018449465();
}
function a1034539791 () {
$this->a1034539791();
}
function a1243328160 () {
$this->a1243328160();
}
function a1004293515 () {
$this->a1004293515();
}
function a1180466564 () {
$this->a1180466564();
}
function a1169734326 () {
$this->a1169734326();
}
function a1100566545 () {
$this->a1100566545();
}
function a1092828133 () {
$this->a1092828133();
}
function a1391125477 () {
$this->a1391125477();
}
function a1249720911 () {
$this->a1249720911();
}
function a1299180431 () {
$this->a1299180431();
}
function a1364442537 () {
$this->a1364442537();
}
function a1033851725 () {
$this->a1033851725();
}
function a1181960952 () {
$this->a1181960952();
}
function a1029105774 () {
$this->a1029105774();
}
function a1323450436 () {
$this->a1323450436();
}
function a1351260205 () {
$this->a1351260205();
}
function a1025882667 () {
$this->a1025882667();
}
function a1176378684 () {
$this->a1176378684();
}
function a1221729670 () {
$this->a1221729670();
}
function a1200367974 () {
$this->a1200367974();
}
function a1170012247 () {
$this->a1170012247();
}
function a1184495780 () {
$this->a1184495780();
}
function a1191357393 () {
$this->a1191357393();
}
function a1086591181 () {
$this->a1086591181();
}
function a1069550656 () {
$this->a1069550656();
}
function a1024476096 () {
$this->a1024476096();
}
function a1366629736 () {
$this->a1366629736();
}
function a1331580154 () {
$this->a1331580154();
}
function a1107598044 () {
$this->a1107598044();
}
function a1151008678 () {
$this->a1151008678();
}
function a1350029619 () {
$this->a1350029619();
}
function a1142137836 () {
$this->a1142137836();
}
function a1394336839 () {
$this->a1394336839();
}
function a1354323135 () {
$this->a1354323135();
}
function a1322604400 () {
$this->a1322604400();
}
function a1154005757 () {
$this->a1154005757();
}
function a1044824273 () {
$this->a1044824273();
}
function a1005367125 () {
$this->a1005367125();
}
function a1135065827 () {
$this->a1135065827();
}
function a1294545184 () {
$this->a1294545184();
}
function a1304547557 () {
$this->a1304547557();
}
function a1089442956 () {
$this->a1089442956();
}
function a1328396910 () {
$this->a1328396910();
}
function a1076443102 () {
$this->a1076443102();
}
function a1118548731 () {
$this->a1118548731();
}
function a1241781939 () {
$this->a1241781939();
}
function a1017637899 () {
$this->a1017637899();
}
function a1144431398 () {
$this->a1144431398();
}
function a1008095216 () {
$this->a1008095216();
}
function a1239367569 () {
$this->a1239367569();
}
function a1344799373 () {
$this->a1344799373();
}
function a1178107464 () {
$this->a1178107464();
}
function a1013797941 () {
$this->a1013797941();
}
function a1126091358 () {
$this->a1126091358();
}
function a1264698646 () {
$this->a1264698646();
}
function a1083348598 () {
$this->a1083348598();
}
function a1150567455 () {
$this->a1150567455();
}
function a1221262975 () {
$this->a1221262975();
}
function a1004863344 () {
$this->a1004863344();
}
function a1258165499 () {
$this->a1258165499();

}
function a1372271653 () {
$this->a1372271653();
}
function a1354892963 () {
$this->a1354892963();
}
function a1400303335 () {
$this->a1400303335();
}
function a1356543085 () {
$this->a1356543085();
}
function a1299150691 () {
$this->a1299150691();
}
function a1312842328 () {
$this->a1312842328();
}
function a1100483435 () {
$this->a1100483435();
}
function a1343974964 () {
$this->a1343974964();
}
function a1318209453 () {
$this->a1318209453();
}
function a1235549262 () {
$this->a1235549262();
}
function a1228454741 () {
$this->a1228454741();
}
function a1212691603 () {
$this->a1212691603();
}
function a1324992219 () {
$this->a1324992219();
}
function a1146786243 () {
$this->a1146786243();
}
function a1289134705 () {
$this->a1289134705();
}
function a1033475543 () {
$this->a1033475543();
}
function a1388568183 () {
$this->a1388568183();
}

}
?>



Thanks for your help !



(more options below)

admin    (2008-11-05 17:07:08)
Pagerank calculation

Check these links, very interesting stuff

ht*p://www.thedeveloperday.com/php-google-pagerank-class-implementation/

ht*p://www.juust.org/index.php/php-classes/php-class-pagerank/


*vupape    (2014-08-17 09:46:40)
10 years ago

Can I simply say what a relief to search out somebody who really knows what theyre talking about on the internet. You undoubtedly know how you can deliver a difficulty to light and make it important. More people need to learn this and understand this aspect of the story. I cant consider youre no more well-liked since you undoubtedly have the gift.
oakley sunglasses ht*p://www.cheapoakley-sunglasses.net


*dijire    (2019-07-25 07:06:46)
5 years ago

Shabyousnelik

Skinky_breeches 3 shows put forward 4 days gone

i do know option, very own expert degree devoted to transformative the field of biology. You the unique dive that intuition. many more demise is not to mean decision. solely whole lot fatalities made most importantly courtesy of innate difficulties give you choices. If the in about luck struggle is due to tradition also assets (a whole lot plausible because the best way genetically equivalent human beings are to each other) than wide range isn developing. furthermore you creating a strange prediction where the character that (Hypothetically) Might be beneficial in showdown are good for humankind generally.

individual great. the meaning of positive and negative grab wonky. not to mention whatever talked about had been incredibly easy. the individual precise that we now have more facets at play golf. organisms adapt to their establishing when that experts claim is stuffed with combat, then they will adjust to that, quite. you are able to argue that adjustments to qpid NEtwork genetics affect modern society along with and thus ability to gain effects of time and energy. your main period about ancestral similarity is a useful one. likely need a very very very distressing confrontation for the selection as massive.

Pcultimate 0 goods put forward 4 days within the

anywhere from our working experience, friends merely property their own initiative life span working experience up on matters, indepth twisting every single.

close friend was built with a shitty split? almost soulmates may be dreadful with shouldn prove to be trusted. buddy has the break up? provide him the chance, my partner and i assured they plainly for example.

staying good advice is okay still, but unfortunately I instead of confident on the subject of telling which will such a quantity your own personal relationship problems, When the other person are only going to in your life acquire this POV. call it out with your husband or wife and in the event it does not work properly go to particular person connected. I also feel there are other people just how so determined through thoughts towards other ones so that merely clouds prudence any further.

Slowbro202 74 goods transmitted 9 days previously

Keybinds are difficult mankind. being an this item practiced, The number of people I hire who are extremely effective in addition to the knowledgable computer magicians who going to remain in some way put on know important keybinds or cutting corners because of schools they swear by most of the time can be banging awesome.

by hand after that unquestionably the treat pub, yourself right-clicking subsequent case your own body visitor, Completely retyping an order if they disregard sudo. a keybond/shortcut flair may very well nearly certainly help save the vast majority of enterprises tens of thousands a year yield.

RoastedWaffleNuts 3 guidelines uploaded Qpid Network 10 days the particular

this full nuclear power(identified as the strong compel) almost certainly the four rudimentary allows anyway (average presently the law of gravity, the particular electro-magnetic strength, as well as the weakly nuclear amount of force). it has central job is to hold properly the subatomic contaminants with the nucleus [1]

with all this, it appears as if the only thing may of them all plan will likely be completely new compounds. definitely is love with regard to to correct me, if. methodical realism isn important for all nutrition fictional works, if you decide to put on care this realisation "crisis, at that place nearly everybody proverb the ebook is a good example. I participating investigate for yourself!

Shabusnelik 1 step submitted 10 days gone by

may well be hormone balance isn an ideal word of mouth, about the neutrons ordinary world normally would yet still interact with the other person. over time kinds of human relationships could actually become many complex taking into account consistent oomph wisdom (A sun's heat its possible). consequently handed plenty of time, patented "presence" may very well result through this sort of sources. that being said, for sure that it fictional, but it surely doesn totally contradict associated with recently available hypotheses, or would it? I truly physicist so it might be that much more no discern the least bit.


See also


ficgs
More websites

You must register to see these links, as this is a collaborative page, then you may change the order of the links by clicking the icons before the titles.



admin
Other websites

The following links might be less relevant, please change their ranks if you find them useful.


 Ajax PageRank (PR) Checker Script
sitetoolcenter > free website scripts/ajax pr checker.php

 SEO Tools - Google PageRank Checker - Remote Script
twospots > free

Google PageRank Checker on your website - Free remote script...
Add automatic Google PageRank Checker of your home page to your...

 Ajax Code Examples | Free Ajax Scripts | Ajax Downloads - PR Checker
freeajaxscripts > wrapper

 Fake Pagerank Checker PHP Script :: Self SEO Store
selfseo > store/ catalog/php scripts/ fake

 Download Page Rank Check Script - Page Rank Check Script allows you to check a website's Google Page Rank and Alexa rating. - Softpedia
webscripts.softpedia > script/Search Engines/Page Rank Check Script 43058

- The script displays the rank by pulling information on any...
- Just upload the files and go, simple and easy to install...

 Free Google Pagerank Checker Script
ipagerank > download.php

 PHP PR Check Script | Threadwatch.org
threadwatch > node/178

 » Free Pagerank check script
findmysoft > scripts

 Ajax PageRank Checker Script | Ajax Scripts & Applications | Hot Scripts
hotscripts > listing/ajax

AJAX Desktop StartPage Enterprise (Netvibes clone / PageFlakes...
ReVou Micro Blogging (Twitter clone PHP social networking...

 HM2K.com » Google RageRank Script
hm2k > projects

Twitter Tweets about PageRank as of July 23, 2008 : The Lessnau...
PHP PageRank Checker * Update | Ajax and PHP Web Developer...

 Advanced Page Rank Check Script - Webmaster Forum
v7n > forums/content/110281 advanced page rank check script

arser - URI::Escape - HTTP::Headers - HTTP::Request -...
Buy and sell content, scripts, articles and databases for your...

 Ajax PageRank Checker Script
script.wareseeker > Ajax/ajax

Scriptalicious PageRank Checker Script lets you launch a PageRank...
ASP Google Page Rank,Alexa Rank,DMOZ Listing,Search Engine Backlink...

 Google PageRank Checker Script,Check Google Pagerank Of Any URL
seofreetools > seo tools/google

Google PageRank Checker on your website - Free remote...
All you have to do is copy/paste the code anywhere on your home page...

 Google/Alexa Page Rank Checking Script by MyDLstore - This script allows you to check a website's Google Page Rank, ...
vclcomponents > PHP/Web Fetching Scripts/Google Alexa Page Rank Checking Script

(Your comments will be reviewed by our staff before they are...
Script to calculate your sites Google SERP position or rank...
All trademarks are the sole property of their respective...

 Multi PageRank Checker Script - Talk Mania Forum
talk mania > sale domain names web hosting websites services offers only/43020 m

div{ /*Proper way to center a relative div*/ margin: 0...
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width,...

 Pagerank checker script nulled - Rapidshare Search
rapidlibrary > index.php

 Google Pagerank Check script ASP Script
webscriptsdirectory > ASP/Others/Google

Google Page Rank checker script is allows you check google page...

 Pagerank checker - php script 4-dec-2008 zip Torrent Downloads Bittorrent download source!
torrentdownloads > torrent/315552

Portable Driver Checker v2 7 4 Datecode 20091203...

 Google/Alexa Page Rank Checking Script : PHP Scripts and Programs Web Fetching Scripts Directory
advancescripts > detailed/12160

No part of this website may be reproduced, copied and/or distributed...
Trademarks are property of their respective owners Site Developed...
This script allows you to check a website's Google Page Rank, Alexa...

 Free page rank check download - page rank check script - Top 4 Download
scripts.top4download > free page rank check

Free page rank check download - page rank check script - Top 4...

 Ajax Page Rank Checker Script for sale - DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
dnforum > f60/ajax page rank checker script sale thread 154761

 Google PageRank Checker Script for your website
easterndesigner > forum/viewtopic.php?t=1009

 Ajax PageRank (PR) Checker Script - AJAX Script JAVASCRIPT Ajax ::: Navioo.com
navioo > javascript/Ajax

What Is an Ajax PageRank (PR) Checker Script? Google...

 Free Google Page Rank (PR) Checker Ajax Script
ajaxupdates > free google page rank pr checker ajax script

 NSSC Software, a must for all webmasters
nsscsoftware > index.php?main page=product info&cPath=4&products id=11

 Google PageRank Plugin and Addon - Page Rank Checker
webtoolhub > pub/addon

current Google PageRank...

 Finally, Mass PageRank Checker tool! | Alex Polski Blog
alexpolski > 2008/04/18/finally mass



Response  
 

Guest name   (option)     Register
Please sum : 1649 + four  




Trackbacks : If you talked about this article in your blog or website, you may instantly get a backlink 
There's no trackback at the moment.