Replaced by a large segment of Google terms_of_service error messages such as "in your email, please send us the entire code displayed below. It seems that the original interface has expired.
However, the extension searchstatus I installed in the Firefox toolbar can still parse the prvalue of each page to find the plug-in package of searchstatus to see the source code. A different verification code is used to generate it.AlgorithmAfter the original checksum is generated, You need to perform another calculation. After the two computations, the correct ch parameter is obtained.
So get ready-made JSCodeAfter the transformation, the new PHP version's Google PageRank query interface method came out. After the local test, the terms_of_service error message is displayed after the user wants to upload the data to the server. After calculating the checksum step by step, it is found that the numbers on the local server and the server are different after several right shifts. This reminds us that the server is a 64-bit server. After the 32-bit system is displaced, the dropped bit will survive well. A trunkbitforce32bit method is added to shield the values after all arithmetic operations at a high level. This solves the extra bit problem in a 64-bit system. The result shows that the 32-bit Linux environment is incompatible because PHP automatically tries to convert int to float when the arithmetic processing overflows. When a negative overflow occurs, this operation correctly retains the precision in windows, but there is a problem in Linux.
The following code:
$ A =-4294967295;
Echo dechex ($ A). "<br/> \ n ";
If ($ A <0) $ A + = 4294967296;
Echo dechex ($ A). "<br/> \ n ";
In Windows, the first echo can correctly output the 32-bit complement code of this negative number, while in 32-bit Linux, the output is the maximum number 0x80000000 that the int type can represent. Only by adding a large integer out of the Integer Range to the large negative number of the overflow in a clever way can the system restore the 32-bit low.
Using these unconventional methods, we finally developed the PHP script implementation (including the complete code) for this new version of the Google prvalue query interface compatible with linux32, linux64, and windows ).