Use php to implement online query of GooglePageRankPR values
Source: Internet
Author: User
After searching online, find a php code to query the value of GooglePageRankPR online. You can easily search for the code on the Internet by yourself and find a php code for online Google PageRank prvalue query.
It is more convenient to check by yourself
By the way I made a web page to facilitate their own practical, Google PageRank prvalue online query address is http://www.ijavascript.cn/google-page-rank.php
However, it seems that there is a problem on the server, and it is always impossible to get it, but there is no problem with local debugging. the allow_url_fopen of php is on, and the file function test is successful, which is strange, you have time to proceed.
What is the Google PR value? Please refer to the reference below
The prvalue is called PageRank. pageRank is a method Google uses to evaluate the importance of a webpage. after merging all the other factors, such as the Title and Keywords. google uses PageRank to adjust the result. this improves the ranking of more important websites in the search results. this improves the relevance and quality of search results. the maximum prvalue is 10. generally, the prvalue reaches 4. even a good website.
PageRank is an integral part of the google search ranking algorithm. its rank ranges from 1 to 10 and its rank is full. the higher the prvalue, the more important the page is in the search ranking. that is to say, if other conditions are the same, websites with a high PR value have a priority in the ranking of google search results.
<? Php
// Edit this to your website url:
$ MyWebSite = "http://www.ccvita.com ";
Define ('gmag', 0xE6359A60 );
// Unsigned shift right
Function zeroFill ($ a, $ B ){
$ Z = hexdec (80000000 );
If ($ z & $ ){
$ A = ($ a> 1 );
$ A & = (~ $ Z );
$ A | = 0x40000000;
$ A = ($ a >>( $ B-1 ));
} Else {
$ A = ($ a >>$ B );
}
$ 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 = mix ($ a, $ B, $ c );
$ A = $ mix [0]; $ B = $ mix [1]; $ c = $ mix [2];
$ K + = 12;
$ Len-= 12;
}
$ C + = $ length;
Switch ($ len) {/* all the case statements fall through */
Case 11: $ c ++ = ($ url [$ k + 10] <24 );
Case 10: $ c ++ = ($ url [$ k + 9] <16 );
Case 9: $ c ++ = ($ url [$ k + 8] <8 );
/* The first byte of c is reserved for the length */
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]);
/* Case 0: nothing left to add */
}
$ Mix = mix ($ a, $ B, $ c );
/* ------------------------------------------ Report the result */
Return $ mix [2];
}
// Converts a string into an array of integers containing the numeric value of the char
Function strord ($ string ){
For ($ I = 0; $ I $ Result [$ I] = ord ($ string {$ I });
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service