久久国产成人av_抖音国产毛片_a片网站免费观看_A片无码播放手机在线观看,色五月在线观看,亚洲精品m在线观看,女人自慰的免费网址,悠悠在线观看精品视频,一级日本片免费的,亚洲精品久,国产精品成人久久久久久久

分享

PHP 使用 GeoIP 進(jìn)行不同國(guó)家 ip 測(cè)試

 陌瑾花開(kāi) 2018-09-20
$ip = "67.220.91.30";// USA
    switch (mt_rand(0, 15)) {
        case 0:// India
            $ip = "210.212.145.105";
            break;
        case 1:// Spain
            $ip = "94.127.167.255";
            break;
        case 2:// Canada
            $ip = "204.101.161.159";
            break;
        case 3:// Vietnam
            $ip = "113.190.186.74";
            break;    
        case 4:// Ireland
            $ip = "217.173.208.0";
            break;
        case 5:// German
            $ip = "188.103.19.120";
            break;
        case 6:// Australia
            $ip = "124.171.74.153";
            break;
        case 7:// Japan
            $ip = "133.242.187.207";
            break;
        case 8:// Thailand
            $ip = "113.53.76.59";
            break;
        case 9:// Bhutan
            $ip = "103.245.240.0";
            break;
        case 10:// Hungary
            $ip = "62.165.232.178";
            break;
        case 11:// Philippines
            $ip = "115.85.29.130";
            break;
        case 12:// Cuba
            $ip = "200.5.12.0";
            break;
        case 13:// Brazil
            $ip = "201.83.6.2";
            break;
        case 14:// Pakistan
            $ip = "119.155.26.109";
            break;
        default:// China
            $ip = "223.104.1.3";
    }
    $country_code = geoip_country_code3_by_name($ip); // need install geoip module
    setcookie("country_code", $country_code, time() + 31536000, "/", "test.com"); 

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,,不代表本站觀點(diǎn),。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式,、誘導(dǎo)購(gòu)買(mǎi)等信息,,謹(jǐn)防詐騙,。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,,請(qǐng)點(diǎn)擊一鍵舉報(bào),。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多