婷婷综合国产,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在线播放网址| 伊人色综合久久天天人手人婷| 国产福利一区在线观看| 免费三级欧美电影| 欧美午夜精品一区二区蜜桃| 天天综合天天综合色| 精品久久一区二区三区| 91视频在线观看免费| 精品在线观看免费| 国产91精品一区二区| 亚洲自拍偷拍欧美| 国产精品无遮挡| 欧美一区二区三级| 日本精品一区二区三区四区的功能| 免费人成在线不卡| 亚洲国产一区二区三区青草影视| 中文字幕日韩欧美一区二区三区| 2017欧美狠狠色| 这里只有精品免费| 欧美性生活久久| 91美女视频网站| 成人av网站免费观看| 看国产成人h片视频| 亚洲一二三四在线| 亚洲一区二区在线免费观看视频| 1区2区3区国产精品| 久久精品视频一区二区三区| 成人黄页毛片网站| 激情五月婷婷综合网| 一区二区不卡在线视频 午夜欧美不卡在| 一片黄亚洲嫩模| 成人免费在线观看入口| 欧美国产一区在线| 国产精品美女一区二区在线观看| 久久亚洲影视婷婷| 91精品在线观看入口| 韩国毛片一区二区三区| 国产综合色在线| 国产精品综合视频| 韩日欧美一区二区三区| 国产在线国偷精品产拍免费yy| 日本女人一区二区三区| 午夜精品一区在线观看| 日韩欧美成人激情| 欧美一区二区三区的| 久久久久国产精品厨房| 国产精品一线二线三线精华| 亚洲图片欧美视频| 日韩一区二区视频| 色婷婷激情一区二区三区| 一区二区高清视频在线观看| 国产99久久久国产精品免费看| 亚洲欧美国产77777| 亚洲一区二区五区| 一区二区三区四区国产精品| 亚洲第一综合色| 精品亚洲欧美一区| 国产资源精品在线观看| 亚洲高清在线精品| 亚洲精品一区二区三区精华液| 久久嫩草精品久久久精品| 国产亚洲精久久久久久| 亚洲品质自拍视频| 日韩在线播放一区二区| 午夜免费久久看| 午夜精彩视频在线观看不卡| 中文在线资源观看网站视频免费不卡 | 日韩av中文字幕一区二区| 麻豆精品久久久| 成人午夜电影久久影院| 777a∨成人精品桃花网| 欧美精品一区二区三区蜜桃| 亚洲精品福利视频网站| 国产在线视频一区二区| 欧美乱妇一区二区三区不卡视频| 中文字幕不卡的av| 日产欧产美韩系列久久99| 成人va在线观看| 国产精品一线二线三线精华| 在线观看网站黄不卡| 久久久久久久久久看片| 午夜av一区二区| 91视频xxxx| 久久免费电影网| 亚洲国产精品一区二区尤物区| 亚洲私人影院在线观看| 国产女人水真多18毛片18精品视频 | 日韩欧美国产综合在线一区二区三区| 国产一区二区三区在线观看免费| 91伊人久久大香线蕉| 亚洲 欧美综合在线网络| 精品一区二区三区欧美| 欧美性大战久久久| 亚洲一区二区三区四区五区中文 | 91免费视频网| 国产午夜亚洲精品羞羞网站| 亚洲线精品一区二区三区八戒| av午夜一区麻豆| 日韩和欧美一区二区三区| 久久青草欧美一区二区三区| 亚洲国产精品成人综合 | 亚洲福利视频三区| 欧美日韩国产免费一区二区 | 欧美高清精品3d| 精品午夜一区二区三区在线观看| 日韩一级大片在线| 国产丶欧美丶日本不卡视频| 国产欧美精品国产国产专区| 裸体一区二区三区| 国产精品成人在线观看| 日韩视频国产视频| 欧美性大战xxxxx久久久| 伦理电影国产精品| 日韩视频一区二区在线观看| 国产suv精品一区二区883| 欧美日韩一区二区三区免费看 | 欧美精品xxxxbbbb| 在线精品国精品国产尤物884a| 久久成人18免费观看| 色婷婷av一区二区| 日本欧美一区二区| 五月天激情小说综合| 麻豆91在线观看| 激情综合一区二区三区| 韩国精品一区二区| 国产精品传媒在线| 亚洲午夜精品17c| 午夜激情一区二区三区| 中文字幕一区二区在线观看 | 一区二区在线观看视频| 久久久另类综合| 国产视频一区在线播放| 综合激情成人伊人| 国产欧美综合在线观看第十页| 成人黄色在线视频| 成人精品免费网站| 欧美日韩一区二区在线观看视频| 欧美人与性动xxxx| 日韩一卡二卡三卡四卡| 日韩一级免费观看| 中文幕一区二区三区久久蜜桃| 国产一区二区91| 国产精品免费视频网站| 欧美日韩中文字幕精品| 久久99精品一区二区三区| 26uuu欧美| 成人综合婷婷国产精品久久| 亚洲黄色片在线观看| 国产在线精品一区二区不卡了| 欧美一级理论性理论a| 免费黄网站欧美| 91精品免费在线观看| 亚洲国产精品人人做人人爽| 国产视频一区不卡| 欧美三级视频在线观看| 精品写真视频在线观看| 亚洲人成在线播放网站岛国| 欧美一区二视频| 在线视频欧美区| 日韩不卡手机在线v区| 自拍偷自拍亚洲精品播放| 国产精品美女一区二区| 欧美国产日韩亚洲一区| 国产亚洲短视频| 国产亚洲人成网站| 精品伦理精品一区| 精品久久久久久无| 精品欧美一区二区久久| 日韩欧美三级在线| 久久亚洲捆绑美女| 欧美一区二区三区精品| 日韩欧美亚洲国产另类| 久久美女艺术照精彩视频福利播放| 日韩欧美高清dvd碟片| 26uuu色噜噜精品一区| 国产精品免费视频网站| 樱桃视频在线观看一区| 色婷婷综合久久久中文字幕| 99精品视频在线播放观看| 激情欧美一区二区| 91.com在线观看| 天堂蜜桃一区二区三区| 日韩一区二区在线观看| 国产suv一区二区三区88区| 91偷拍与自偷拍精品| 欧美日韩国产bt| 久久精品人人爽人人爽| 亚洲日本在线天堂| 亚洲观看高清完整版在线观看| 一区二区三区在线视频观看| 日韩影视精彩在线| 成人精品鲁一区一区二区| 国产精品久久久久久久久快鸭| 色播五月激情综合网| 2020国产精品| 麻豆免费精品视频| 国产精品每日更新| 欧美丝袜自拍制服另类| 亚洲一区在线观看视频| 国产v日产∨综合v精品视频|