-2

我正在获取谁是文本数据,现在我想提取诸如管理员电话、到期日期、地址等信息。我得到的文字如下所示:

$text ="Access to .IN WHOIS information is provided to assist persons in determining    the contents of a domain name registration record in the .IN registry database. The data in this record is provided by .IN Registry for informational purposes only, and .IN does not guarantee its accuracy. This service is intended only for query-based access. You agree that you will use this data only for lawful purposes and that, under no circumstances will you use this data to: (a) allow, enable, or otherwise support the transmission by e-mail, telephone, or facsimile of mass unsolicited, commercial advertising or solicitations to entities other than the data recipient's own existing customers; or (b) enable high volume, automated, electronic processes that send queries or data to the systems of Registry Operator, a Registrar, or Afilias except as reasonably necessary to register domain names or modify existing registrations. All rights reserved. .IN reserves the right to modify these terms at any time. By submitting this query, you agree to abide by this policy. Domain ID:D21089-AFIN Domain Name:GOOGLE.IN Created On:14-Feb-2005 20:35:14 UTC Last Updated On:25-Jul-2012 23:14:22 UTC Expiration Date:14-Feb-2013 20:35:14 UTC Sponsoring Registrar:Mark Monitor (R84-AFIN) Status:CLIENT DELETE PROHIBITED Status:CLIENT TRANSFER PROHIBITED Status:CLIENT UPDATE PROHIBITED Registrant ID:EPPIPM-143349 Registrant Name:Admin DNS Registrant Organization:GOOGLE INC. Registrant Street1:1600 Amphitheatre Parkway Registrant Street2: Registrant Street3: Registrant City:Mountain View, CA Registrant State/Province: Registrant Postal Code:94043 Registrant Country:US Registrant Phone: +1.6503300100  Registrant Phone Ext.: Registrant FAX: Registrant FAX Ext.: Registrant Email:dns-admin@google.com Admin ID:EPPIPM-143349 Admin Name:Admin DNS Admin Organization:GOOGLE INC. Admin Street1:1600 Amphitheatre Parkway Admin Street2: Admin Street3: Admin City:Mountain View, CA Admin State/Province: Admin Postal Code:94043 Admin Country:US Admin Phone: +1.6503300100  Admin Phone Ext.: Admin FAX: Admin FAX Ext.: Admin Email:dns-admin@google.com Tech ID:EPPIPM-143349 Tech Name:Admin DNS Tech Organization:GOOGLE INC. Tech Street1:1600 Amphitheatre Parkway Tech Street2: Tech Street3: Tech City:Mountain View, CA Tech State/Province: Tech Postal Code:94043 Tech Country:US Tech Phone: +1.6503300100  Tech Phone Ext.: Tech FAX: Tech FAX Ext.: Tech Email:dns-admin@google.com Name Server:NS1.GOOGLE.COM Name Server:NS2.GOOGLE.COM Name Server:NS3.GOOGLE.COM Name Server:NS4.GOOGLE.COM Name Server: Name Server: Name Server: Name Server: Name Server: Name Server: Name Server: Name Server: Name Server: DNSSEC:Unsigned ";

请帮我获取数据。

4

1 回答 1

1

你最好使用PEAR::Net_Whois哪个是用 PHP 编写的 whois 包来做到这一点。在http://pear.php.net/package/Net_Whois找到它

于 2012-10-02T08:00:45.307 回答