欧美阿v视频在线大全_亚洲欧美中文日韩V在线观看_www性欧美日韩欧美91_亚洲欧美日韩久久精品

主頁 > 知識(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)民參考!
  • 推薦文章
    欧美阿v视频在线大全_亚洲欧美中文日韩V在线观看_www性欧美日韩欧美91_亚洲欧美日韩久久精品
  • <rt id="w000q"><acronym id="w000q"></acronym></rt>
  • <abbr id="w000q"></abbr>
    <rt id="w000q"></rt>
    国产精品麻豆久久久| 丁香激情综合五月| 日本少妇xxxx| 欧美精品在线一区二区| 亚洲图片欧美一区| 亚洲图片欧美另类| 欧美久久免费观看| 亚洲mv在线观看| 国产chinese中国hdxxxx| 欧美精品高清视频| 日本在线观看不卡视频| 国产精品探花一区二区在线观看| 制服丝袜成人动漫| 蜜臀久久99精品久久久久宅男| 波多野结衣先锋影音| 日韩一级二级三级| 理论电影国产精品| 在线观看国产精品一区| 久久久亚洲欧洲日产国码αv| 国产在线精品一区在线观看麻豆| 美女网站视频色| 亚洲欧洲日产国产综合网| 99久久99久久免费精品蜜臀| 欧美日韩在线播| 日韩精品一二三| 日本成人免费视频| 中文一区一区三区高中清不卡| 成人网在线播放| 欧美午夜电影网| 日韩成人午夜电影| 91视频免费看片| 日韩伦理av电影| 久久人妻少妇嫩草av蜜桃| 欧美一级免费大片| 狠狠色丁香九九婷婷综合五月| 国产男女猛烈无遮挡在线喷水| 日韩伦理av电影| 亚洲一区二区乱码| 国产区在线观看成人精品| 99精品在线观看视频| 在线观看91av| 国产一区二区三区最好精华液| 成人免费毛片东京热| 亚洲第一成人在线| 免费视频91蜜桃| 亚洲激情校园春色| 久久亚洲AV成人无码国产野外| 国产亚洲欧美色| 91丨porny丨最新| 日韩美一区二区三区| 国产福利不卡视频| 欧美日韩国产片| 国内精品视频一区二区三区八戒| 成人羞羞国产免费图片| 视频一区二区欧美| 天天爽天天爽天天爽| 亚洲一级二级三级| 国产农村妇女精品一区| 亚洲黄色录像片| 国产亚洲精品熟女国产成人| 亚洲私人黄色宅男| 色欲av无码一区二区三区| 亚洲欧美在线视频| 久久精品一区二区免费播放| 中文字幕日韩一区| 欧美黑人欧美精品刺激| 亚洲桃色在线一区| 波多野在线播放| 一区二区三国产精华液| 国产无遮挡在线观看| 亚洲综合在线电影| 亚洲一二三四五六区| 亚洲成人精品一区二区| 国产真实乱在线更新| 日韩电影免费一区| 色婷婷综合激情| 经典三级视频一区| 欧美男生操女生| 成人精品高清在线| 亚洲精品在线观看视频| 国产人妖在线观看| 国产精品乱人伦| 在哪里可以看毛片| 亚洲国产毛片aaaaa无费看| 日本黄色录像视频| 美女一区二区在线观看| 欧美人妖巨大在线| a在线欧美一区| 国产午夜精品一区二区三区视频| 国产二级一片内射视频播放 | 最新欧美精品一区二区三区| 免费污网站在线观看| 亚洲国产综合视频在线观看| 懂色av懂色av粉嫩av| 国内精品写真在线观看| 日韩欧美电影一区| 91精品国产高清91久久久久久| 国产精品久久看| 欧美色图17p| 老汉av免费一区二区三区| 欧美日韩国产不卡| 91免费国产在线| 中文字幕一区二区三区蜜月| 综合 欧美 亚洲日本| 蜜臀av性久久久久蜜臀aⅴ流畅| 欧美日韩一级黄| 欧美mv和日韩mv的网站| 性高潮久久久久久| 亚洲黄色性网站| 色综合久久综合| 成人av在线播放网站| 国产精品免费人成网站| 中国美女黄色一级片| 精品一区二区免费视频| 精品国产一区二区三区不卡| 国产精品无码永久免费不卡| 五月天激情综合| 欧美电影影音先锋| 成人区人妻精品一区二| 午夜视频一区在线观看| 欧美日本在线视频| 国产艳妇疯狂做爰视频| 亚洲电影欧美电影有声小说| 欧美日韩高清一区二区三区| 免费看三级黄色片| 亚洲国产欧美日韩另类综合 | 成人一区二区三区在线观看| 欧美激情在线一区二区| 免费91在线观看| 国产成人精品综合在线观看| 国产精品污污网站在线观看| 一级片一级片一级片| 成人av网站在线| 亚洲免费高清视频在线| 欧美中文字幕一区二区三区| av影片在线播放| 午夜在线成人av| 日韩视频一区在线观看| 性欧美丰满熟妇xxxx性仙踪林| 免费成人性网站| 久久亚洲免费视频| 婷婷国产成人精品视频| 成人动漫在线一区| 亚洲精品免费在线播放| 欧美日韩一级片在线观看| 一起草在线视频| 九九国产精品视频| 中文乱码免费一区二区| 91国偷自产一区二区三区观看| 又黄又爽又色的视频| 五月婷婷欧美视频| 日韩精品中文字幕一区| 成人18视频免费69| 成人av网站免费观看| 亚洲成人综合在线| 精品乱人伦小说| 色欲一区二区三区精品a片| 99久久精品国产一区二区三区 | 国产毛片精品国产一区二区三区| 国产精品麻豆视频| 欧美三级乱人伦电影| 亚洲专区区免费| 国产 欧美在线| 亚洲电影在线免费观看| 精品国产区一区| 一区二区在线观看免费视频| 亚洲美女在线播放| 久久99热国产| 国内毛片毛片毛片毛片毛片| 91香蕉视频mp4| 麻豆精品视频在线| 亚洲欧洲一区二区三区| 宅男在线国产精品| 91精品国自产在线| 久久综合桃花网| 久久精品99国产精品| 日韩美女视频一区二区| 日韩限制级电影在线观看| 污污的视频在线免费观看| 日本少妇xxxx软件| 经典三级在线一区| 亚洲最色的网站| 久久九九国产精品| 欧美日本一区二区在线观看| 成人黄色a级片| 色诱av手机版| 国产精品99久久久| 性做久久久久久免费观看欧美| 国产日韩精品视频一区| 欧美日韩成人高清| 熟女少妇a性色生活片毛片| 男男一级淫片免费播放| 懂色中文一区二区在线播放| 午夜成人免费视频| 国产精品久久久久久久久久久免费看| 欧美理论片在线| 婷婷伊人五月天| 自拍偷拍亚洲天堂| 国产一级二级av| 高清不卡一区二区在线|