Copy CodeThe code is as follows:
WebSite http://www.micxp.com
function Miibeian ($domain) {
$domain = Base64_encode ($domain);
$opts = Array (
' http ' = = Array (
' Method ' = ' GET ',
' Timeout ' = 5
)
);
$context = Stream_context_create ($opts);
$url = ' http://webid.360.cn/complaininfo.php?domain= '. $domain;
$html = File_get_contents ($url, False, $context);
if (Strpos ($html, ' do not query to website Information ')}) {
return false;
}
$flag = '
';
$start = Strpos ($html, $flag) + strlen ($flag);
$info = substr ($html, $start, Strpos ($html, '
')-$start);
$info = Str_replace (', ', ', $info);
$info = Str_replace ('
website Name:', ', $info);
$info = Str_replace ('
website Home Address:', ', $info);
$info = Str_replace ('
Organizer Name:', ', $info);
$info = Str_replace ('
The nature of the organizer:', ', $info);
$info = Str_replace ('
Audit Time:', ', $info);
$info = Str_replace ('
website Record/license number:', ', $info);
$info = Str_replace ("\ r \ n", ", $info);
$info = Str_replace ('', ', $info);
$info = Trim ($info);
$temp = Explode (' ', $info);
return $temp;
}
http://webid.360.cn/complaininfo.php?domain=c3lzeXVuLmNvbQ==
$result = Miibeian (' jb51.net ');
Print_r ($result);
http://www.bkjia.com/PHPjc/313581.html www.bkjia.com true http://www.bkjia.com/PHPjc/313581.html techarticle Copy the code as follows: PHP//WebSite http://www.micxp.com function Miibeian ($domain) {$domain = Base64_encode ($domain); $opt s = Array (' http ' = Array (' method ' = ' GET ',...