| 
	
 | 
 Posted by Oli Filth on 07/10/47 11:42 
fritz-bayer@web.de said the following on 05/03/2006 21:06: 
> Hi Dana, 
>  
> the complete code of the php, which I`m supposed to port to perl can be 
> found at http://www.googlecommunity.com/scripts/google-pagerank.php 
>  
> It actually computes the pagerank of a website. Most of the script is 
> calculating a checksum, which is needed to calculate the pagerank. 
>  
> It's really strange the code, but my job is just to port it, but it's 
> not so easy as you can see? 
>  
 
Basically, PHP doesn't do unsigned arithmetic.  This algorithm probably  
originated in C or something similar, where you can specify unsigned  
data types and everything will work fine.  The implementation this guy  
created relies on the current conversions occurring in PHP; on a 64-bit  
platform this would probably fail. 
 
However: 
 
http://tumanov.com/entry/209 
It's talking about VBScript, but the problem he describes is identical. 
 
--  
Oli
 
[Back to original message] 
 |