Php link batch query tool download _ PHP Tutorial

Source: Internet
Author: User
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







Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.