Download the php link batch query tool. Friendly connections are commonly used by webmasters. if there are too many connections on one network, it will be too much trouble to check them one by one. for convenience, we have provided php links and batch query programs, as long as you enter a friendly connection, it is common for webmasters. if there are too many connections on one network, it will be a lot of trouble to check them one by one. for convenience, we provide php friendly links and batch query programs, you only need to enter a friendly connection to query it.
Friendly connections are commonly used by webmasters. if there are too many connections on one network, it will be too much trouble to check them one by one. for convenience, we have provided php links and batch query programs, you only need to enter a friendly connection to query it.
$ Max_allow_links = 100; // maximum number of connections allowed for the license check
// This function is reproduced on www.lian123.com. thank you very much.
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 the check
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.doc ument. 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.' = "error link"; script ';
} Else {
$ S = my_file_get_contents ($ _ GET ['URL']);
If (trim ($ s) = ''){
Echo 'script '. $ js_id.' = "failed to capture content"; script ';
} Else if (stristr ($ s, $ _ GET ['My _ url']) {
Echo 'script '. $ js_id.' = "include link, check passed"; script ';
} Else {
Echo 'script '. $ js_id.' = "no link found. check"; script ';
}
}
If ($ _ GET ['auto _ check'] = 1 ){
Echo 'script parent. checkLink ('. ($ _ GET ['id'] + 1).'); script ';
}
Exit ('
Done! ');
}
?>
Automatic inspection procedure for friendship links in website creation