婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識(shí)庫 > PHP whois查詢類定義與用法示例

PHP whois查詢類定義與用法示例

熱門標(biāo)簽:智能電話機(jī)器人排名前十名南京 西區(qū)企業(yè)怎么做地圖標(biāo)注入駐 七魚外呼系統(tǒng)停用嗎 抖音有個(gè)地圖標(biāo)注是什么意思 海南人工外呼系統(tǒng)有效果嗎 地下城堡2圖九地圖標(biāo)注 保定crm外呼系統(tǒng)運(yùn)營商 九江外呼系統(tǒng) 阿里云400電話申請(qǐng)加工單

本文實(shí)例講述了PHP whois查詢類定義與用法。分享給大家供大家參考,具體如下:

whois.class.php

?php
class Whois{
private $WHOIS_SERVERS = array(
"com" => array("whois.verisign-grs.com","whois.crsnic.net"),
"net" => array("whois.verisign-grs.com","whois.crsnic.net"),
"org" => array("whois.pir.org","whois.publicinterestregistry.net"),
"info" => array("whois.afilias.info","whois.afilias.net"),
"biz" => array("whois.neulevel.biz"),
"us" => array("whois.nic.us"),
"uk" => array("whois.nic.uk"),
"ca" => array("whois.cira.ca"),
"tel" => array("whois.nic.tel"),
"ie" => array("whois.iedr.ie","whois.domainregistry.ie"),
"it" => array("whois.nic.it"),
"li" => array("whois.nic.li"),
"no" => array("whois.norid.no"),
"cc" => array("whois.nic.cc"),
"eu" => array("whois.eu"),
"nu" => array("whois.nic.nu"),
"au" => array("whois.aunic.net","whois.ausregistry.net.au"),
"de" => array("whois.denic.de"),
"ws" => array("whois.worldsite.ws","whois.nic.ws","www.nic.ws"),
"sc" => array("whois2.afilias-grs.net"),
"mobi" => array("whois.dotmobiregistry.net"),
"pro" => array("whois.registrypro.pro","whois.registry.pro"),
"edu" => array("whois.educause.net","whois.crsnic.net"),
"tv" => array("whois.nic.tv","tvwhois.verisign-grs.com"),
"travel" => array("whois.nic.travel"),
"name" => array("whois.nic.name"),
"in" => array("whois.inregistry.net","whois.registry.in"),
"me" => array("whois.nic.me","whois.meregistry.net"),
"at" => array("whois.nic.at"),
"be" => array("whois.dns.be"),
"cn" => array("whois.cnnic.cn","whois.cnnic.net.cn"),
"asia" => array("whois.nic.asia"),
"ru" => array("whois.ripn.ru","whois.ripn.net"),
"ro" => array("whois.rotld.ro"),
"aero" => array("whois.aero"),
"fr" => array("whois.nic.fr"),
"se" => array("whois.iis.se","whois.nic-se.se","whois.nic.se"),
"nl" => array("whois.sidn.nl","whois.domain-registry.nl"),
"nz" => array("whois.srs.net.nz","whois.domainz.net.nz"),
"mx" => array("whois.nic.mx"),
"tw" => array("whois.apnic.net","whois.twnic.net.tw"),
"ch" => array("whois.nic.ch"),
"hk" => array("whois.hknic.net.hk"),
"ac" => array("whois.nic.ac"),
"ae" => array("whois.nic.ae"),
"af" => array("whois.nic.af"),
"ag" => array("whois.nic.ag"),
"al" => array("whois.ripe.net"),
"am" => array("whois.amnic.net"),
"as" => array("whois.nic.as"),
"az" => array("whois.ripe.net"),
"ba" => array("whois.ripe.net"),
"bg" => array("whois.register.bg"),
"bi" => array("whois.nic.bi"),
"bj" => array("www.nic.bj"),
"br" => array("whois.nic.br"),
"bt" => array("whois.netnames.net"),
"by" => array("whois.ripe.net"),
"bz" => array("whois.belizenic.bz"),
"cd" => array("whois.nic.cd"),
"ck" => array("whois.nic.ck"),
"cl" => array("nic.cl"),
"coop" => array("whois.nic.coop"),
"cx" => array("whois.nic.cx"),
"cy" => array("whois.ripe.net"),
"cz" => array("whois.nic.cz"),
"dk" => array("whois.dk-hostmaster.dk"),
"dm" => array("whois.nic.cx"),
"dz" => array("whois.ripe.net"),
"ee" => array("whois.eenet.ee"),
"eg" => array("whois.ripe.net"),
"es" => array("whois.ripe.net"),
"fi" => array("whois.ficora.fi"),
"fo" => array("whois.ripe.net"),
"gb" => array("whois.ripe.net"),
"ge" => array("whois.ripe.net"),
"gl" => array("whois.ripe.net"),
"gm" => array("whois.ripe.net"),
"gov" => array("whois.nic.gov"),
"gr" => array("whois.ripe.net"),
"gs" => array("whois.adamsnames.tc"),
"hm" => array("whois.registry.hm"),
"hn" => array("whois2.afilias-grs.net"),
"hr" => array("whois.ripe.net"),
"hu" => array("whois.ripe.net"),
"il" => array("whois.isoc.org.il"),
"int" => array("whois.isi.edu"),
"iq" => array("vrx.net"),
"ir" => array("whois.nic.ir"),
"is" => array("whois.isnic.is"),
"je" => array("whois.je"),
"jp" => array("whois.jprs.jp"),
"kg" => array("whois.domain.kg"),
"kr" => array("whois.nic.or.kr"),
"la" => array("whois2.afilias-grs.net"),
"lt" => array("whois.domreg.lt"),
"lu" => array("whois.restena.lu"),
"lv" => array("whois.nic.lv"),
"ly" => array("whois.lydomains.com"),
"ma" => array("whois.iam.net.ma"),
"mc" => array("whois.ripe.net"),
"md" => array("whois.nic.md"),
"mil" => array("whois.nic.mil"),
"mk" => array("whois.ripe.net"),
"ms" => array("whois.nic.ms"),
"mt" => array("whois.ripe.net"),
"mu" => array("whois.nic.mu"),
"my" => array("whois.mynic.net.my"),
"nf" => array("whois.nic.cx"),
"pl" => array("whois.dns.pl"),
"pr" => array("whois.nic.pr"),
"pt" => array("whois.dns.pt"),
"sa" => array("saudinic.net.sa"),
"sb" => array("whois.nic.net.sb"),
"sg" => array("whois.nic.net.sg"),
"sh" => array("whois.nic.sh"),
"si" => array("whois.arnes.si"),
"sk" => array("whois.sk-nic.sk"),
"sm" => array("whois.ripe.net"),
"st" => array("whois.nic.st"),
"su" => array("whois.ripn.net"),
"tc" => array("whois.adamsnames.tc"),
"tf" => array("whois.nic.tf"),
"th" => array("whois.thnic.net"),
"tj" => array("whois.nic.tj"),
"tk" => array("whois.nic.tk"),
"tl" => array("whois.domains.tl"),
"tm" => array("whois.nic.tm"),
"tn" => array("whois.ripe.net"),
"to" => array("whois.tonic.to"),
"tp" => array("whois.domains.tl"),
"tr" => array("whois.nic.tr"),
"ua" => array("whois.ripe.net"),
"uy" => array("nic.uy"),
"uz" => array("whois.cctld.uz"),
"va" => array("whois.ripe.net"),
"vc" => array("whois2.afilias-grs.net"),
"ve" => array("whois.nic.ve"),
"vg" => array("whois.adamsnames.tc"),
"yu" => array("whois.ripe.net")
);
public function whoislookup($domain)
{
$domain = trim($domain); //remove space from start and end of domain
if(substr(strtolower($domain), 0, 7) == "http://") $domain = substr($domain, 7); // remove http:// if included
if(substr(strtolower($domain), 0, 4) == "www.") $domain = substr($domain, 4);//remove www from domain
if(preg_match("/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/",$domain))
return $this->queryWhois("whois.lacnic.net",$domain);
elseif(preg_match("/^([-a-z0-9]{2,100})\.([a-z\.]{2,8})$/i",$domain))
{
$domain_parts = explode(".", $domain);
$tld = strtolower(array_pop($domain_parts));
$server = $this->WHOIS_SERVERS[$tld][0];
if(!$server) {
return "Error: No appropriate Whois server found for $domain domain!";
}
$res=$this->queryWhois($server,$domain);
while(preg_match_all("/Whois Server: (.*)/", $res, $matches))
{
$server=array_pop($matches[1]);
$res=$this->queryWhois($server,$domain);
}
return $res;
}
else
return "Invalid Input";
}
private function queryWhois($server,$domain)
{
$fp = @fsockopen($server, 43, $errno, $errstr, 20) or die("Socket Error " . $errno . " - " . $errstr);
if($server=="whois.verisign-grs.com")
$domain="=".$domain;
fputs($fp, $domain . "\r\n");
$out = "";
while(!feof($fp)){
$out .= fgets($fp);
}
fclose($fp);
return $out;
}
}
?>

調(diào)用的方式

?php
require("whois.class.php");
$whois=new Whois;
echo $whois->whoislookup("www.jb51.net");
?>

運(yùn)行結(jié)果:

Domain Name: JB51.NET Registry Domain ID: 527217184_DOMAIN_NET-VRSN Registrar WHOIS Server: whois.godaddy.com Registrar URL: http://www.godaddy.com Updated Date: 2016-05-26T08:17:44Z Creation Date: 2006-07-22T03:11:39Z Registry Expiry Date: 2024-07-22T03:11:39Z Registrar: GoDaddy.com, LLC Registrar IANA ID: 146 Registrar Abuse Contact Email: abuse@godaddy.com Registrar Abuse Contact Phone: 480-624-2505 Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited Name Server: NS1.DNSV2.COM Name Server: NS2.DNSV2.COM DNSSEC: unsigned URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/ >>> Last update of whois database: 2019-04-03T03:32:17Z For more information on Whois status codes, please visit https://icann.org/epp NOTICE: The expiration date displayed in this record is the date the registrar's sponsorship of the domain name registration in the registry is currently set to expire. This date does not necessarily reflect the expiration date of the domain name registrant's agreement with the sponsoring registrar. Users may consult the sponsoring registrar's Whois database to view the registrar's reported date of expiration for this registration. TERMS OF USE: You are not authorized to access or query our Whois database through the use of electronic processes that are high-volume and automated except as reasonably necessary to register domain names or modify existing registrations; the Data in VeriSign Global Registry Services' ("VeriSign") Whois database is provided by VeriSign for information purposes only, and to assist persons in obtaining information about or related to a domain name registration record. VeriSign does not guarantee its accuracy. By submitting a Whois query, you agree to abide by the following terms of use: You agree that you may use this Data only for lawful purposes and that under no circumstances will you use this Data to: (1) allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via e-mail, telephone, or facsimile; or (2) enable high volume, automated, electronic processes that apply to VeriSign (or its computer systems). The compilation, repackaging, dissemination or other use of this Data is expressly prohibited without the prior written consent of VeriSign. You agree not to use electronic processes that are automated and high-volume to access or query the Whois database except as reasonably necessary to register domain names or modify existing registrations. VeriSign reserves the right to restrict your access to the Whois database in its sole discretion to ensure operational stability. VeriSign may restrict or terminate your access to the Whois database for failure to abide by these terms of use. VeriSign reserves the right to modify these terms at any time. The Registry database contains ONLY .COM, .NET, .EDU domains and Registrars.

更多關(guān)于PHP相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《php socket用法總結(jié)》、《php字符串(string)用法總結(jié)》、《PHP數(shù)學(xué)運(yùn)算技巧總結(jié)》、《php面向?qū)ο蟪绦蛟O(shè)計(jì)入門教程》、《PHP數(shù)組(Array)操作技巧大全》、《PHP數(shù)據(jù)結(jié)構(gòu)與算法教程》、《php程序設(shè)計(jì)算法總結(jié)》及《PHP網(wǎng)絡(luò)編程技巧總結(jié)》

希望本文所述對(duì)大家PHP程序設(shè)計(jì)有所幫助。

您可能感興趣的文章:
  • php使用lua+redis實(shí)現(xiàn)限流,計(jì)數(shù)器模式,令牌桶模式
  • PHP設(shè)計(jì)模式之策略模式原理與用法實(shí)例分析
  • PHP設(shè)計(jì)模式之觀察者模式定義與用法分析
  • PHP示例演示發(fā)送郵件給某個(gè)郵箱
  • ThinkPHP3.2.3框架實(shí)現(xiàn)的空模塊、空控制器、空操作,跳轉(zhuǎn)到錯(cuò)誤404頁面圖文詳解
  • PHP反射實(shí)際應(yīng)用示例
  • ThinkPHP3.2.3框架實(shí)現(xiàn)執(zhí)行原生SQL語句的方法示例
  • 從ThinkPHP3.2.3過渡到ThinkPHP5.0學(xué)習(xí)筆記圖文詳解
  • 使用docker在服務(wù)器運(yùn)行多個(gè)php版本
  • PHP中quotemeta()函數(shù)的用法講解

標(biāo)簽:遼陽 涼山 梅河口 昭通 九江 十堰 韶關(guān) 甘肅

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《PHP whois查詢類定義與用法示例》,本文關(guān)鍵詞  PHP,whois,查詢,類,定義,與,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《PHP whois查詢類定義與用法示例》相關(guān)的同類信息!
  • 本頁收集關(guān)于PHP whois查詢類定義與用法示例的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av
    水蜜桃久久夜色精品一区的特点| 欧美精品一区二区三区在线| 亚洲国产精品人人做人人爽| 久久免费午夜影院| 91精品国产综合久久福利软件 | 欧美午夜电影一区| 国产高清在线精品| 国产精品资源在线观看| 热久久一区二区| 日韩精品久久理论片| 亚洲va天堂va国产va久| 亚洲成人免费在线观看| 亚洲男女一区二区三区| 亚洲精品国产第一综合99久久| 中文字幕第一区综合| 国产精品毛片大码女人| 国产免费久久精品| 国产清纯白嫩初高生在线观看91| 欧美va亚洲va香蕉在线 | 久久综合久久综合亚洲| 99免费精品视频| jiyouzz国产精品久久| 东方欧美亚洲色图在线| 国产99久久久精品| 91免费观看视频在线| 成人精品国产一区二区4080| 成人在线视频一区二区| 成人av资源下载| 色婷婷国产精品| 欧美日韩日日摸| 欧美变态tickle挠乳网站| 久久久亚洲综合| 欧美欧美午夜aⅴ在线观看| 在线播放日韩导航| 欧美成人欧美edvon| 久久综合狠狠综合| |精品福利一区二区三区| 亚洲国产视频a| 午夜国产不卡在线观看视频| 麻豆91在线播放免费| 国产尤物一区二区在线| 99re视频精品| 91精品国产福利| 国产欧美日韩精品一区| 亚洲美女免费视频| 麻豆精品视频在线观看免费| 国产精品18久久久久久久久久久久 | 亚洲欧美激情一区二区| 亚洲激情五月婷婷| 日韩电影在线免费看| 国内精品第一页| 色综合久久综合网| 日韩欧美黄色影院| 亚洲一区二区三区视频在线播放| 亚洲三级电影网站| 日韩成人一区二区三区在线观看| 国产99精品国产| 欧美一级日韩一级| 亚洲免费在线视频一区 二区| 免费欧美高清视频| 色哟哟日韩精品| 久久综合国产精品| 日本中文字幕一区| 色狠狠av一区二区三区| 国产亚洲一区字幕| 免费一级欧美片在线观看| 色偷偷成人一区二区三区91| 精品美女在线播放| 三级欧美韩日大片在线看| av亚洲精华国产精华| 久久午夜电影网| 欧美a一区二区| 在线观看日韩毛片| 国产精品欧美一区喷水| 韩国欧美国产一区| 欧美一级xxx| 亚洲成人免费视| 色视频成人在线观看免| 国产欧美日本一区二区三区| 日本不卡1234视频| 欧美视频在线观看一区二区| 一区二区三区精品在线观看| 99re8在线精品视频免费播放| 精品免费日韩av| 美国av一区二区| 欧美一级欧美三级| 日韩高清在线电影| 欧美日韩国产大片| 亚洲综合男人的天堂| 不卡影院免费观看| 国产视频一区二区三区在线观看| 午夜成人免费电影| 日本韩国精品在线| 中文字幕中文在线不卡住| 国产成人免费视频| 国产欧美日韩久久| 丁香桃色午夜亚洲一区二区三区| 久久一日本道色综合| 亚洲成精国产精品女| 欧美日韩免费高清一区色橹橹| 一区二区三区中文字幕| 欧美日韩一区二区三区四区五区| 色综合久久天天| 一级中文字幕一区二区| 9人人澡人人爽人人精品| 成人欧美一区二区三区1314| 91色九色蝌蚪| 亚洲成人午夜影院| 91精品国产福利| 国产91在线看| 中文字幕欧美激情| 91色乱码一区二区三区| 亚洲成a人在线观看| 日韩欧美第一区| 成人爽a毛片一区二区免费| 亚洲视频免费在线观看| 欧美午夜不卡在线观看免费| 亚洲一区二区高清| 欧美r级在线观看| 一本在线高清不卡dvd| 一区二区三区四区五区视频在线观看| 色哟哟国产精品| 日本亚洲天堂网| 精品国产凹凸成av人网站| 北条麻妃国产九九精品视频| 亚洲小少妇裸体bbw| 精品欧美久久久| 99国产精品久| 91麻豆精品国产91久久久| 国产盗摄女厕一区二区三区| 亚洲私人黄色宅男| 欧美日本一道本| 中文字幕av资源一区| 欧美精品乱码久久久久久| 成人动漫av在线| 蜜臀久久久99精品久久久久久| 国产精品污污网站在线观看| 欧美一级欧美一级在线播放| 99精品久久免费看蜜臀剧情介绍| 免费观看30秒视频久久| 亚洲日本一区二区| 欧美v国产在线一区二区三区| 色老汉一区二区三区| 国产一区二区三区免费看| 亚洲国产人成综合网站| 国产午夜亚洲精品理论片色戒| 欧美三级中文字幕| 成人va在线观看| 精品一区二区日韩| 日韩经典中文字幕一区| 亚洲久草在线视频| 国产精品日产欧美久久久久| 精品国产露脸精彩对白| 欧美高清视频一二三区| 日本黄色一区二区| 丁香五精品蜜臀久久久久99网站 | 九九视频精品免费| 18成人在线观看| 国产精品理论片| 国产亚洲精品中文字幕| 日韩欧美aaaaaa| 欧美一区午夜视频在线观看| 欧美日韩一区二区不卡| 色综合久久88色综合天天免费| heyzo一本久久综合| 成人免费高清视频| 成人激情午夜影院| 成人激情av网| aaa亚洲精品一二三区| 国产成a人无v码亚洲福利| 国模少妇一区二区三区| 奇米精品一区二区三区四区 | 亚洲伊人色欲综合网| 国产女人水真多18毛片18精品视频| 日韩精品中文字幕在线不卡尤物| 欧美精品xxxxbbbb| 在线观看亚洲精品视频| 91久久人澡人人添人人爽欧美| 99热99精品| 在线看国产一区| 欧美日韩视频专区在线播放| 欧美嫩在线观看| 欧美一区二区三区性视频| 欧美tickling网站挠脚心| 日韩一级片网址| 欧美成人一区二区| 久久精品亚洲精品国产欧美| 国产无一区二区| 亚洲欧美日韩中文播放 | 一区二区三区欧美| 午夜精品福利一区二区蜜股av| 亚洲色图欧美激情| 亚洲私人影院在线观看| 午夜精品福利一区二区蜜股av| 亚洲va欧美va人人爽午夜| 婷婷开心激情综合| 国内精品伊人久久久久影院对白| 风流少妇一区二区| 日本精品视频一区二区三区| 91精品啪在线观看国产60岁|