Home > php教程 > php手册 > body text

我也来提供一个域名Whois查询API接口

WBOY
Release: 2016-06-06 19:35:49
Original
1585 people have browsed it

可支持大部分域名后缀以及中文等punycode域名查询。接口输出纯Whois文本数据未加任何广告代码! 无 ?php$DomainName = 'oschina.net';//定义域名变量值$WhoisAPI = 'http://whois.263.tw/weixinindex.php?domain='.$DomainName;//定义whois api的url$WhoisDat

可支持大部分域名后缀 以及中文等punycode域名查询。接口输出纯Whois文本数据 未加任何广告代码!
<?php
$DomainName = 'oschina.net';//定义域名变量值
$WhoisAPI = 'http://whois.263.tw/weixinindex.php?domain='.$DomainName;//定义whois api的url
$WhoisData = file_get_contents($WhoisAPI);//定义值为读取到的whois信息
echo '<pre class="brush:php;toolbar:false">';//输出原文本格式
echo $WhoisData;//输出获取到的whois信息文本
echo "
Copy after login
";//输出原文本格式 ?> 我也来提供一个域名Whois查询API接口
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template