Copy code The code is as follows:
// WebSite http://www.micxp.com
function miibeian($domain) {
$domain = base64_encode ( $domain );
$opts = array (
" http' => array (
" 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, 'No website information found')) {
return false; $html, $start, strpos ( $html, '' ) - $start );
$info = str_replace ( ' ', '', $info );
$info = str_replace ( '
Website name:', '', $info );
$info = str_replace ( 'Website homepage address: ', ' ', $info );
$info = str_replace ( 'Organizer name:', ' ', $info );
$info = str_replace ( 'Type of organizer:', ' ', $info );
$info = str_replace ( '', ' ', $info );
$info = str_replace ( 'Website registration/license number:', ' ', $info );
$info = str_replace ( "rn", '', $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
truehttp: //www.bkjia.com/PHPjc/313581.htmlTechArticleCopy the code as follows: ?php // WebSite http://www.micxp.com function miibeian($domain ) { $domain = base64_encode ( $domain ); $opts = array ( 'http' = array ( 'method' = "GET",...