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

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

主站蜘蛛池模板: 江门市| 东阿县| 温州市| 古浪县| 城步| 湘阴县| 静乐县| 临泉县| 东台市| 黑龙江省| 凤冈县| 浦江县| 桂阳县| 贵州省| 东安县| 金沙县| 安溪县| 永仁县| 乐亭县| 南阳市| 鸡泽县| 临潭县| 黄浦区| 宜丰县| 神木县| 页游| 收藏| 南部县| 化州市| 平顶山市| 阜城县| 沙湾县| 井冈山市| 平谷区| 济源市| 谢通门县| 南澳县| 定州市| 南京市| 成武县| 沾益县|