Copy codeThe Code is as follows:
<? Php
/*
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 );
}
?>
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> Computer bar: prvalue query | PageRank query </title>
</Head>
<Body onload = "javascript: document. frmip. url. focus ();">
<Form name = "frpr" method = "post" action = "pr. php">
Enter the URL to query:
<Input type = "text" name = "url" size = "30">
<Input type = "submit">
</Form>
<? Php
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 );
Echo "<a href = \"". $ hrefurl. "\" target = \ "_ blank \"> ". $ url. "</a> the prvalue is <B> ". $ pagerank [1]. "</B> ,";
$ Whoisurl = str_replace ("http: //", "", $ hrefurl );
$ Whoisurl = str_replace ("www.", "", $ whoisurl );
$ Whoisurl = str_replace ("/", "", $ whoisurl );
Echo "<a href = \" http://whois.domaintools.com/". $ whoisurl." \ "target = \" _ blank \ "> WHOIS </a> ,";
// Echo "<a href = \" http://www.computer98.com/whois? Whois = ". $ whoisurl." \ "target = \" _ blank \ "> WHOIS </a> ,";
Echo "<a href = \" http://alexa.chinaz.com /? Domain = ". $ url." \ "target = \" _ blank \ "> ALEXA </a> <br> ";
$ Google_link = "<iframe src = \" http://www.google.com/search? Q = link: ". $ url." \ "width = \" 50% \ "height = \" 500 \ "> ";
$ Google_site = "<iframe src = \" http://www.google.com/search? Q = site: ". $ url." \ "width = \" 50% \ "height = \" 500 \ "> ";
// $ Baidu_link = "<iframe src = \" http://www.baidu.com/s? Wd = link: ". $ url." \ "> ";
// $ Baidu_site = "<iframe src = \" http://www.baidu.com/s? Wd = site: ". $ url." \ "> ";
$ Baidu_link = "<a href = \" http://www.baidu.com/s? Wd = link: ". $ url." \ "target = \" _ blank \ "> baidu link </a> ";
$ Baidu_site = "<a href = \" http://www.baidu.com/s? Wd = site: ". $ url." \ "target = \" _ blank \ "> baidu site </a> ";
}
?>
<Form method = post action = "http://www.ip138.com/ips8.asp" name = "ipform" target = "_ blank">
<Tr> <td align = "center"> ip address: <input type = "text" name = "ip" size = "16" value = "<? Php echo gethostbyname ($ whoisurl);?> ">
<Input type = "submit" value = "query"> <input type = "hidden" name = "action" value = "2">
</Td> </tr> </FORM>
<? Php
Echo $ baidu_link ."";
Echo $ baidu_site. "<br> ";
Echo $ google_link;
Echo $ google_site;
?>
<A href = "http://www.computer98.com/pr.php? Show_source = true "> show source </a> <br>
</Body>
</Html>