Home > Backend Development > PHP Tutorial > PHP friendly link batch query tool download_PHP tutorial

PHP friendly link batch query tool download_PHP tutorial

WBOY
Release: 2016-07-20 11:06:09
Original
836 people have browsed it

Friendly links are commonly used by webmasters. If there are too many network connections, it will be troublesome to check them one by one. For convenience, we provide PHP friendly links and batch query programs. You only need to enter the friendly links to query.

Friendly links are commonly used by webmasters. If there are too many connections to a network, it will be troublesome to check them one by one. For convenience, we provide php friendly links and batch query programs. Just enter the friendly links to query. oh.

$max_allow_links = 100; // Maximum number of allowed links to check

// This function is reprinted from www.lian123.com, special thanks to
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;
}

// Start checking
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 '<script>' . $js_id . ' = "Internal link";</script>';

} else if( !stristr($_GET['url'],'http://') ) {
echo '<script>' . $js_id . ' = "Bad link";</script>';
} else {
$s = my_file_get_contents($_GET['url']);

if( trim($s) == '' ){
echo '';
} else if( stristr($s,$_GET['my_url']) ){
echo '< ;script>' . $js_id . ' = "Contains links, checks passed";';
} else {
echo '< script>' . $js_id . ' = "No link found, please check";';
}
}

if($_GET['auto_check']==1){
echo '<script>parent.checkLink(' . ($_GET['id']+1) . ');</script> ';
}

exit('
done!');

}
?>



"Building a Website" Friendly Link Automatic Checker








Friendly Link Automatic Checker


We were very BS people, at that time Both parties exchanged homepage links, but the other party randomly canceled the friendly links exchanged with you (that is, the other party removed the link to your website, but you still retained its link)

 < br />
With this program, you can quickly and automatically check your friendly link URL to see if the other party's website has removed your link.


// Display the obtained link address
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 '







';
for($i=0; $i
$check_str = ($_POST['auto_check']==0) ? 'Start checking' : 'Waiting...';

   echo '


   
   
   
   ';

   if($i>$max_allow_links){
    break;
   }
  }
  echo '

Start checking

Check whether the following URL contains a link of ' . $_POST['my_url'] . '
Serial number Checked URL Check result
' . ($i+1) . '.' . $ary[1][$i] . '' . $check_str . '
';
 }
 echo '<script>my_url="' . trim($_POST['my_url']) . '";auto_check=' . (int)$_POST['auto_check'] . ';</script>';

 if( $_POST['auto_check']==1 ){
  echo '<script>autoCheckLink(0);</script>';
 }
 
}

?>
 

必须包含地址(自己网站首页):


自动或手工检查:



要检查的网站(下面是可视化输入框,请直接将文字链接和图片链接复制,粘贴 到下面即可):


<script>window.frames["zuoWangZhang.com.cn"].document.designMode="On";</script>

 




 


 
  
  
  
 
载入测试数据

 


如果您不知道怎么开始,请点击 载入测试数据,然后点击 查看演示





本程序由《做网站》原创,完全开源!下载


欢迎各位转载,但请保留如何做网站的文字,谢谢!



欢迎您 给作者提出反馈意见,我会不断的改善它,推出更好用的版本。



if(isset($_POST['html_code'])){
echo '


 ';
 
}
 
?>


 

 

 

 

 

 




 

 
   
   
   
   
   

   

  
  


 
   


   
   
 
   
  
  
  

我的友情连接:



 Hao123
 

 265
 

 百度网址
 

 建网站
 

 雅虎网址
 
 

 baidu
 

Google导航
 

 
 

 
 

 
 

 
   

 
 

 谷歌Google
 

 搜狗网址
 

其他测试链接:
163内部链接测试
  

 





www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445059.htmlTechArticleFriendly connections are commonly used by webmasters. If there are too many connections to one network, it will be troublesome to check them one by one. Yes, for convenience we provide php friendly links and batch query procedures. Just enter...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template