Home >Backend Development >PHP Tutorial >Domain name query An example of domain name query to crawl information from other websites
if (isset($xx)) {
$dodo=@file("http://www.e9china.com/cgi-bin/comdns.pl?raw=1&lookup=OK&fqdn=".$fqdn."&domain=".$domain."&root=".$root."&cdomain=2.7");
$i=0;
while($dodo[$i]) {
echo $dodo[$i];
$i++;
}
exit;
}
?>
if (isset($submit)) {
if ($domain=="") { echo "请输入域名"; exit; }
$dom=@file("http://www.e9china.com/cgi-bin/comdns.pl?cdomain=2.7&lookup=OK&domain=".$domain."&root=".$root);
$dom1=substr("$dom[13]",19);
$dom1=chop($dom1);
switch($dom1) {
case "对不起!该域名已被注册":
for($i=0;$i<32;$i++) { #i
echo $dom[$i];
}
?>
| |
以上就介绍了域名查询 一个从别的网站抓取信息的例子域名查询,包括了域名查询方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
Statement: 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 Previous article:Installation of Apache1314+PHP404 under apache tomcat WIN98Next article:Installation of Apache1314+PHP404 under apache tomcat WIN98 Related articlesSee more |