PR查询PHP小程序
<?phpif (!empty($_GET['url'])) {
$url = $_GET['url'];
$content = file("http://rankwhere.com/google-page-rank.php?url=http://".$url);
foreach($content as $v){
$str .= $v;
}
$res = explode("has Google PageRank", $str);
$res = explode("out of 10", $res);
$pr = trim($res);
}
?>
<form method="GET">
Http://<input name="url">
<input type="submit" value="PR查询">
</form>
<?php
if ($res) {
echo($url."的PR值为:".$pr);
}
?>
使用方法:保存成.php文件即可使用,支持xxx.php?url=atao.cn这样的方式 呵呵 en 收了 呵呵
小偷 路过呀~~~~~~````
PR查询PHP小程序
<?phpif (!empty($_GET['url'])) {
$url = $_GET['url'];
$content = file("http://rankwhere.com/google-page-rank.php?url=http://".$url);
foreach($content as $v){
$str .= $v;
}
$res = explode("has Google PageRank", $str);
$res = explode("out of 10", $res);
$pr = trim($res);
}
?>
<form method="GET">
Http://<input name="url">
<input type="submit" value="PR查询">
</form>
<?php
if ($res) {
echo($url."的PR值为:".$pr);
}
?>
使用方法:保存成.php文件即可使用,支持xxx.php?url=atao.cn这样的方式
页:
[1]