Display the Google PR value on your webpage

Source: Internet
Author: User
Google itself provides an interface for querying the PageRank value of a specified url. With this interface, you can easily write scripts to implement this function on the page, you do not need to rely on google toolbar for query. This article provides a pr query interface implemented using PHP.
Easy to use, as long as you need
<〈? Php
Include_once ("./pr. inc. php ");
Echo getPR ($ urlToQuery );
? > 〉
The PageRank value of the specified url is displayed. It is not difficult to simulate the graphic pr display on the Google Toolbar based on this value. In fact, the implementation principle is quite simple, that is, passing specific query parameters to Google's search engine and then capturing the returned page content.
For the demo page, see Google PageRank Query
Source of code material: http://forums.seochat.com/archive/t-17286/Php-Pagerank-checker
There is also an open source pr status query project on the Internet: http://pagerankstatus.mozdev.org/source.html, can directly capture the complete source code from cvs (cvs user password guest ):
Cvs-d: pserver: guest@mozdev.org:/cvs login
Cvs-d: pserver: guest@mozdev.org:/cvs co pagerankstatus
A website dedicated to pr display interface: http://www.prchecker.info/

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.