這是一款用來檢測網站pr值的源碼了,下載後直接就會可以使用的哦。
這是一款用來檢測網站pr值的源碼了,下載後直接就會可以使用的哦。
function my_file_get_contents($url, $timeout=30) {
if ( function_exists('curl_init') ) {
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
} else if ( ini_get('allow_url_fopen') == 1 || strtolower(ini_get('allow_url_fopen')) == 'on' ) {
$file_contents = @file_get_contents($url);
} else {
$file_contents = '';
}
return $file_contents;
}
// 開始檢查
if( isset($_GET['mod']) && $_GET['mod'] == 'check_now' && isset($_GET['id']) && isset($_GET['my_url']) && isset($_GET['url']) && isset($_GET['auto_check']) ){
$js_id = 'parent.document.getElementById("s_' . $_GET['id'] . '").innerHTML';
if( strstr($_GET['url'],$_GET['my_url']) ) {
echo '';
} else if( !stristr($_GET['url'],'http://') ) {
echo '';
} else {
$s = my_file_get_contents($_GET['url']);
if( trim($s) == '' ){
echo '';
} else if( stristr($s,$_GET['my_url']) ){
echo '';
} else {
echo '';
}
}
if($_GET['auto_check']==1){
echo '';
}
exit('
done!');
}
?>
《做網站》友情連結自動檢查程式
友情連結自動檢查程式
我們很BS這樣的人,當時雙方都交換了首頁連結,但對方卻隨意取消和您交換的友情連結(即對方去掉您網站的連結,而您卻還保留了它的連結)
有了本程式,您可以快速、自動的檢查您的友情連結網址,查看對方的網站是否去掉了您的連結。
// 顯示擷取到的連結地址
if( isset($_POST['html_code']) && isset($_POST['my_url']) ){
preg_match_all("/]{1,}/isU",stripslashes($_POST['html_code']),$ary);
if( isset($ary[1]) && count($ary[1])>0 ){
echo '
echo '
if($i>$max_allow_links){
break;
}
}
echo '
開始檢查
檢查下列網址是否包含有 ' . $_POST['my_url'] . ' 的連結 |
| 序號 |
被檢查的網址 |
檢查結果 |
'; for($i=0; $i $check_str = ($_POST['auto_check']==0) ? '開始檢查' : '等待中...';
| ' . ($i+1) . '. |
' . $ary[1][$i] . ' |
' . $check_str . ' |
';
';
}
echo '';
if( $_POST['auto_check']==1 ){
echo '';
}
}
?>
if(isset($_POST['html_code'])){
echo '
' . stripslashes($_POST['html_code']) . '
';
}
?>
我的友情串連:
|
|
Hao123 |
265 |
百度網址 |
建網站 |
雅虎網址 |
baidu |
Google導航 |
|
|
|
|
|
|
搜狗網址 |
其他測試連結: 163內部連結測試 |
示範地地址:
http://tool.111cn.cn/pr/pr.php
http://www.bkjia.com/PHPjc/445055.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/445055.htmlTechArticle這是一款用來檢測網站pr值的源碼了,下載後直接就會可以使用的哦。 這是一款用來檢測網站pr值的源碼了,下載後直接就會可以使用的哦。...