PHP Classes

Returns PR for all URLs

Recommend this page to a friend!

      Google Rank Checker  >  All threads  >  Returns PR for all URLs  >  (Un) Subscribe thread alerts  
Subject:Returns PR for all URLs
Summary:Returns the same PR value for all domains being checked
Messages:23
Author:Charles Nullens
Date:2006-01-07 14:54:24
Update:2008-03-10 17:23:28
 
  1 - 10   11 - 20   21 - 23  

  21. Re: Returns PR for all URLs   Reply   Report abuse  
Picture of Miroslav Ćurčić Miroslav Ćurčić - 2007-11-10 18:53:15 - In reply to message 20 from matthew bagley
Just SOLVED !
Problem was in arithmetics in functions "zeroFill" and "mix" when running on 64 bits system.

Changes:

function zeroFill($a, $b) {
$z = hexdec('80000000');
if ($z & $a) {
$a = ($a>>1);
$a &= 0x7FFFFFFF;
$a |= 0x40000000;
$a = $this->shr32($a,($b-1));
} else {
$a = $this->shr32($a,$b);
}
return $a;
}

function shr32 ($a, $b) {
if ($b==0) return $a;
if ($b==32) return 0;
$res= ($a & 0x7FFFFFFF) >> $b;
if (0x80000000 & $a) $res |= (1<<(31-$b));
return $res;
}

function xor32($a, $b) {
return ($a ^ $b) & 0xFFFFFFFF;
}

function mix($a,$b,$c) {
$a -= $b; $a -= $c; $a= $this->xor32($a, ($this->zeroFill($c,13)));
$b -= $c; $b -= $a; $b= $this->xor32($b, $a<<8);
$c -= $a; $c -= $b; $c= $this->xor32($c, ($this->zeroFill($b,13)));
$a -= $b; $a -= $c; $a= $this->xor32($a, ($this->zeroFill($c,12)));
$b -= $c; $b -= $a; $b= $this->xor32($b, ($a<<16));
$c -= $a; $c -= $b; $c= $this->xor32($c, ($this->zeroFill($b,5)));
$a -= $b; $a -= $c; $a= $this->xor32($a, ($this->zeroFill($c,3)));
$b -= $c; $b -= $a; $b= $this->xor32($b, ($a<<10));
$c -= $a; $c -= $b; $c= $this->xor32($c, ($this->zeroFill($b,15)));
return array($a,$b,$c);
}

  22. Re: Returns PR for all URLs   Reply   Report abuse  
Picture of Catalin Dordea Catalin Dordea - 2007-11-16 01:48:32 - In reply to message 21 from Miroslav &#262;ur&#269;i&#263;
For me don`t work this fix.

Is the same problem... works on localhost and don`t on my on-line server

  23. Re: Returns PR for all URLs   Reply   Report abuse  
Picture of Bhagat Rhati Bhagat Rhati - 2008-03-10 17:23:28 - In reply to message 22 from Catalin Dordea
Hello

I think is it a block from Google. Updated the script to the new version but still returns PR1.

KR
C.

 
  1 - 10   11 - 20   21 - 23