php goolge pr值檢測程式_PHP教程

來源:互聯網
上載者:User
這是一款用來檢測網站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 '

'; for($i=0; $i $check_str = ($_POST['auto_check']==0) ? '開始檢查' : '等待中...'; ';
開始檢查


檢查下列網址是否包含有 ' . $_POST['my_url'] . ' 的連結
序號 被檢查的網址 檢查結果
' . ($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值的源碼了,下載後直接就會可以使用的哦。...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.