色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

php實現的獲取網站備案信息查詢代碼(360)

復制代碼 代碼如下:
<?php  
 // 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, '未查詢到網站信息' )) {  
        return false;  
    }  
    $flag = '<ul>';  
    $start = strpos ( $html, $flag ) + strlen ( $flag );  
    $info = substr ( $html, $start, strpos ( $html, '</ul>' ) - $start );  

    $info = str_replace ( ' ', '', $info );  
    $info = str_replace ( '<li><strong>網站名稱:</strong>', '', $info );  
    $info = str_replace ( '<li><strong>網站首頁地址:</strong>', ' ', $info );  
    $info = str_replace ( '<li><strong>主辦單位名稱:</strong>', ' ', $info );  
    $info = str_replace ( '<li><strong>主辦單位性質:</strong>', ' ', $info );  
    $info = str_replace ( '<li><strong>審核時間:</strong>', ' ', $info );  
    $info = str_replace ( '<li><strong>網站備案/許可證號:</strong>', ' ', $info );  
    $info = str_replace ( "/r/n", '', $info );  
    $info = str_replace ( '</li>', '', $info );  
    $info = trim ( $info );  
    $temp = explode ( ' ', $info );  
    return $temp;  
}  
// http://webid.360.cn/complaininfo.php?domain=c3lzeXVuLmNvbQ== 
$result = miibeian ( 'jb51.NET' );  
print_r ( $result );

php技術php實現的獲取網站備案信息查詢代碼(360),轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 黔江区| 泗水县| 诸暨市| 札达县| 岑溪市| 清水县| 翁源县| 东乡族自治县| 余干县| 阜平县| 集安市| 福建省| 安达市| 友谊县| 元朗区| 文山县| 盐津县| 云梦县| 临江市| 团风县| 扎鲁特旗| 通河县| 贵溪市| 同仁县| 阜新市| 宁国市| 碌曲县| 乐亭县| 卓资县| 姜堰市| 永和县| 临汾市| 新竹市| 永寿县| 平江县| 德化县| 左贡县| 东乡县| 卓尼县| 萍乡市| 德令哈市|