The display of Google PR value on your page

Source: Internet
Author: User
Tags interface query
GOOGLE|PR Value | page | show | page

Google itself provides an interface for querying the PageRank value of a specified URL, and knowing this interface makes it easy to write a script to implement this function on the page without relying on Google toolbar to make inquiries. This article provides a PR query interface implemented in PHP.

It's easy to use, just where you need it.

〈?php
Include_once ("./pr.inc.php");
echo GETPR ($urlToQuery);
?〉

The value of the PageRank of the specified URL can be displayed. Know this number on the basis of the simulation of Google Toolbar above the graphical PR display is not difficult. In fact, the implementation of the principle is very simple, is to pass specific query parameters to Google's search engine, and then crawl the returned page content.

Demo page See: Google PageRank Query

This article source of code sources: Http://forums.seochat.com/archive/t-17286/Php-Pagerank-checker

There is also an open source PR State Query Project: http://pagerankstatus.mozdev.org/source.html, can be directly crawled from CVS full source code (CVS user password Guest):

cvs-d:p Server:guest@mozdev.org:/cvs Login

cvs-d:p Server:guest@mozdev.org:/cvs Co pagerankstatus

A dedicated website to provide 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.