色尼玛亚洲综合影院,亚洲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),轉載需保留來源!

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

主站蜘蛛池模板: 屯门区| 通河县| 庐江县| 吉安市| 香港| 大足县| 吐鲁番市| 徐闻县| 水富县| 天门市| 稷山县| 健康| 高青县| 墨竹工卡县| 四子王旗| 白银市| 吐鲁番市| 山东省| 大关县| 庄浪县| 连江县| 邓州市| 昌乐县| 阿拉善左旗| 项城市| 铜梁县| 舞钢市| 淮安市| 子长县| 专栏| 卢氏县| 公主岭市| 南投市| 无为县| 革吉县| 安福县| 来安县| 连平县| 桐梓县| 留坝县| 汕尾市|