PHP Classes

This script doesn't work! Even the examples provided (inc goo...

Recommend this page to a friend!

      Google Rank Checker  >  All threads  >  This script doesn't work! Even the...  >  (Un) Subscribe thread alerts  
Subject:This script doesn't work! Even the...
Summary:Package rating comment
Messages:7
Author:Charles Green
Date:2007-12-06 20:01:21
Update:2008-03-20 16:26:28
 

Charles Green rated this package as follows:

Utility: Bad
Consistency: Sufficient
Documentation: Insufficient
Examples: Bad

  1. This script doesn't work! Even the...   Reply   Report abuse  
Picture of Charles Green Charles Green - 2007-12-06 20:01:21
This script doesn't work! Even the examples provided (inc google.com) all return PageRank results of 1 !! Perhaps it has become obsolete by changes at google in which case it needs to be updated and should be withdrawn or at least contain an explanation in the meantime.

  2. Re: This script doesn't work! Even the...   Reply   Report abuse  
Picture of dicky kurniawan dicky kurniawan - 2007-12-31 07:06:39 - In reply to message 1 from Charles Green
I agree. I have tested and all websites have PR 1. Even friendster dot com.

  3. Re: This script doesn't work! Even the...   Reply   Report abuse  
Picture of juust out juust out - 2008-01-01 19:26:11 - In reply to message 1 from Charles Green
I use freeglobes (french link exchanger, freeglobes dot net) and they added an extended class in the same routine, for servers with problems with bitwise operations and it works fine

you can download it for free







  4. Re: This script doesn't work! Even the...   Reply   Report abuse  
Picture of Charles Green Charles Green - 2008-01-06 22:39:43 - In reply to message 3 from juust out
"juust out" - nice one. Go spam yourself and stop wasting our time!
Contact details for the website you're spamming us about are:

Loisel Jerome
freeglobes.net, office #246761
c/o OwO, BP80157
59053, Roubaix Cedex 1
FR
+33.899701761
mailto:qx2femno729qz7txnete@o-w-o.net

  5. script works fine   Reply   Report abuse  
Picture of juust out juust out - 2008-01-07 00:47:57 - In reply to message 4 from Charles Green
from the freeglobes code :

//return least significant 32 bits
//works by telling unserialize to create an integer even though we provide a double value
function int32($x) {
return unserialize("i:$x;");
//return intval($x); // This line doesn't work on all servers.
}

I had that same problem with 16bit dos under 32bits windows. their workaround fixes the server issue and leaves the class intact. I'll leave it to the programmer of the class to decide if it is a valid addition.

  6. Re: This script doesn't work! Even the...   Reply   Report abuse  
Picture of fatfreddy fatfreddy - 2008-03-19 15:41:15 - In reply to message 5 from juust out
Hi Juust Out!

Can you tell me where to add your changes in theoriginal class-file?

Can't find any inval() there


Thanks

  7. Re: This script doesn't work! Even the...   Reply   Report abuse  
Picture of juust out juust out - 2008-03-20 16:26:28 - In reply to message 6 from fatfreddy
The remark about intval() is made in the extended class, but isnt in the original class, sorry. This is the extended class code :
//-------------
class AlternateGooglePR extends GooglePR {

function AlternateGooglePR()
{
$this->GooglePR();
}

function xor32($a, $b) {
return $this->int32($a) ^ $this->int32($b);
}

function int32($x) {
return unserialize("i:$x;");
//return intval($x); // This line doesn't work on all servers.
}

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);
}

//-------------
I use "$gpr = New AlternateGooglePR()" to make an instance.

The coding worked with the old class, I cant say for sure if it works with the new version (or if the problem is solved by now). And as neither the class nor the extension are my own programming, i'd rather keep out of it.
But if you still run the old class it's worth a try.