如何使用whois響應數據在php上獲得域名過期日期?如何使用whois響應數據在PHP上獲得域名過期日期?
通常我使用whois響應來檢查域的可用性。
例如:檢查DRGDRGDRGRGDRG.COM
如果whois響應數據有詞No match for
這意味着此域可用。
No match for domain "DRGDRGDRGRGDRG.COM".
但現在我要檢查域使用這樣
Domain Name: GOOGLE.COM
Registrar: MARKMONITOR INC.
Sponsoring Registrar IANA ID: 292
Whois Server: whois.markmonitor.com
Referral URL: http://www.markmonitor.com
Name Server: NS1.GOOGLE.COM
Name Server: NS2.GOOGLE.COM
Name Server: NS3.GOOGLE.COM
Name Server: NS4.GOOGLE.COM
Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
Status: serverDeleteProhibited https://icann.org/epp#serverDeleteProhibited
Status: serverTransferProhibited https://icann.org/epp#serverTransferProhibited
Status: serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited
Updated Date: 20-jul-2011
Creation Date: 15-sep-1997
Expiration Date: 14-sep-2020
我如何能做到這一點的whois響應數據到期日期?謝謝
也許有趣? http://stackoverflow.com/questions/36817/who-provides-a-whois-api –