如何解析css for whois结果?

时间:2015-02-09 13:05:10

标签: php whois

我正在使用whoislookupscript.com脚本查找whois,我想以不同方式设置每个部分的样式,例如.Registrar,Registrant,Admin,tech,以便我的观众可以了解分离并希望过滤注册人电子邮件ID。< / p>

我真的不知道如何开始,如果有人可以给任何启动器,以便我可以开发它。

目前正在这里查看纯文本whoislookupscript。 COM

Response from the WHOIS server (whois.tucows.com):

Domain Name: BBC.COM
Registry Domain ID: 4794897_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.tucows.com
Registrar URL: http://tucowsdomains.com
Updated Date: 2014-06-15T05:05:24Z
Creation Date: 1989-07-15T04:00:00Z
Registrar Registration Expiration Date: 2015-07-14T04:00:00Z
Registrar: TUCOWS, INC.
Registrar IANA ID: 69
Registrar Abuse Contact Email: domainabuse@tucows.com
Registrar Abuse Contact Phone: +1.4165350123
Reseller: BBC Internet Services
Reseller: hostmaster@bbc.co.uk
Reseller: +44 1737 839592
Domain Status: clientTransferProhibited
Domain Status: clientUpdateProhibited
Domain Status: serverDeleteProhibited
Domain Status: serverTransferProhibited
Registry Registrant ID: 
Registrant Name: Brandon Butterworth
Registrant Organization: British Broadcasting Corporation
Registrant Street: Broadcasting House Portland Place
Registrant City: London
Registrant State/Province: 
Registrant Postal Code: W1A 1AA
Registrant Country: GB
Registrant Phone: +44.3030409777
Registrant Phone Ext: 
Registrant Fax: 
Registrant Fax Ext: 
Registrant Email: hostmaster@bbc.co.uk
Registry Admin ID: 
Admin Name: Brandon Butterworth
Admin Organization: British Broadcasting Corporation
Admin Street: Broadcasting House Portland Place
Admin City: London
Admin State/Province: 
Admin Postal Code: W1A 1AA
Admin Country: GB
Admin Phone: +44.3030409777
Admin Phone Ext: 
Admin Fax: 
Admin Fax Ext: 
Admin Email: hostmaster@bbc.co.uk
Registry Tech ID: 
Tech Name: Brandon Butterworth
Tech Organization: British Broadcasting Corporation
Tech Street: Broadcasting House Portland Place
Tech City: London
Tech State/Province: 
Tech Postal Code: W1A 1AA
Tech Country: GB
Tech Phone: +44.3030409777
Tech Phone Ext: 
Tech Fax: 
Tech Fax Ext: 
Tech Email: hostmaster@bbc.co.uk
Name Server: NS1.RBSOV.BBC.CO.UK
Name Server: NS1.THDOW.BBC.CO.UK
Name Server: NS1.TCAMS.BBC.CO.UK
DNSSEC: Unsigned
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/
>>> Last update of WHOIS database: 2014-06-15T05:05:24Z <<<

Registration Service Provider:
BBC Internet Services, hostmaster@bbc.co.uk
+44 1737 839592
This company may be contacted for domain login/passwords,
DNS/Nameserver changes, and general domain support questions.

The Data in the Tucows Registrar WHOIS database is provided to you by Tucows
for information purposes only, and may be used to assist you in obtaining
information about or related to a domain name's registration record.

Tucows makes this information available "as is," and does not guarantee its
accuracy.

1 个答案:

答案 0 :(得分:1)

一旦你从whois记录中得到你的输出 试试

  echo '<pre class="whois">';
    print "<div class=\"response_display\">Response from the WHOIS server ($whois_server):<br><br>".str_replace("\n","<br /><br />",$result)."</div>";

         echo '</pre>';

becoz有时开发人员认为没有得到\ n所以尝试上面的那个,你将被替换为break,之后你可以回答这个问题

How to split string from meshed content and add html element