Prvalue query | PageRank query_php instance

Source: Internet
Author: User
Prvalue query | PageRank query The code is as follows:


/*
Filename: http://www.computer98.com/pr.php
Version: 0.02
Author: computer98.com
From: www.computer98.com
Last modified:
Remark: reprinted. please keep this information and its source.
*/

If (! Empty ($ _ REQUEST ['show _ source']) {
Show_source ("pr. php ");
Die (0 );
}
?>



Computer bar: prvalue query | PageRank query



If (! Empty ($ _ REQUEST ['URL']) {
$ Url = $ _ REQUEST ['URL'];
$ F2 = file_get_contents ("http://www.getyourpagerank.com/rank.php? Url = ". $ url );
Preg_match ("/PageRank: \ s * (\ d *)/I", $ f2, $ pagerank );
$ Hrefurl = "http: //". str_replace ("http: //", "", $ url );
The prvalue of echo "". $ url. "is". $ Pagerank [1].",";
$ Whoisurl = str_replace ("http: //", "", $ hrefurl );
$ Whoisurl = str_replace ("www.", "", $ whoisurl );
$ Whoisurl = str_replace ("/", "", $ whoisurl );
Echo "WHOIS ,";
// Echo "WHOIS ,";
Echo "ALEXA
";

$ Google_link =""; &lt;BR&gt; $ google_site =" &lt;iframe src = \ "http://www.google.com/search? Q = site :". $ url. "\" width = \ "50% \" height = \ "500 \"&gt; "; &lt;BR&gt; // $ baidu_link =" &lt;iframe src = \ "http://www.baidu.com/s? Wd = link: ". $ url." \ "&gt;"; &lt;BR&gt; // $ baidu_site = "&lt;iframe src = \" http://www.baidu.com/s? Wd = site :". $ url. "\"&gt; "; &lt;br&gt; $ baidu_link =" baidu link "; &lt;BR&gt; $ baidu_site =" baidu site "; &lt;BR &gt;}&lt; BR &gt;?&gt; &lt;BR&gt; &lt;? Php &lt;BR&gt; echo $ baidu_link. ""; &lt;BR&gt; echo $ baidu_site. "&lt;br&gt;"; &lt;BR&gt; echo $ google_link; &lt;BR&gt; echo $ google_site; &lt;BR &gt;?&gt; &lt;BR&gt; show source &lt;br&gt; &lt;BR&gt; &lt;/body&gt; &lt;BR&gt; </ptml&gt;

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.