(主要用了两个字符串函数implode()和explode)
我制作的域名查询的源代码,主要用了两个字符串函数implode()和explode,利用这两个函数的切割字符串的强大功能,可以查询.com,.net.,org.,cc.,tv下的域名whois。
<?php
echo ‘<center><form>’;
echo ‘<input type=”text” name=”string”>’;
echo ‘<input type=”submit” value=”查询”>’;
echo “</form>”;
if (ist($string))
{
$url = “http://networksolutions.com/cgi-bin/whois/whois?string=”.$string.”&string=arch”;
$str = implode(“”,file($url));
$小学一年级期末试卷aa= explode(“<pr”,$str);
$bb=$aa[1];
$cc=explode(“re>”,$bb);
$dd= $cc[0];
$ee=explode(“e>”,$dd);
$ff=implode(“<pre>”,$ee);
$hh=explode(“</p”,$ff);
$jj=implode(“</pre>”,$hh);
$kk=explode(“registrant”,$jj);
$ll=implode(“<font color=red>注册人</font>”,$kk);
$mm=explode(“domain name”,$ll);
$nn=implode(“<font color=red>域名</font>”,$mm);
$oo=explode(“administrative contact”,$nn);
$pp=implode(“<font color=red>管理联系人</font>”,$oo);
$qq=explode(“technical contact”,$pp);
$ii=implode(“<font color=red>技术联系人</font>”,$qq);
$ss=explode(“record last updated on”,$ii);
$tt=implode(“<font color=red>最后更新日期:</font>”,$ss);
$uu=explode(“record expires on”,$tt);
$vv=implode(“<font color=red>域名到期日期:</font>”,英语必修一单词$uu);
$ww=explode(“record created on”,$vv);
$xx=implode(“<font color=red>域名注册日期:</font>”,$ww);
$yy=explode(“databa last updated on”汇报材料怎么写,$xx);
$zz=implode(“<font color=red>数据库更新日期:</font>”,$yy);
$aaa=explode(“record updated on”,$zz);
$bbb=implode(“<font color=red>记录更新日期:</font>”,$aaa);
$ccc=explode(“admin name”,$bbb);
$ddd=implode(“<font color=red>管理联系人</font>”,$ccc);
$eee=explode(“tech name”,$ddd);
$whois=implode(“<font color=red>技术联系人</font>”,$eee);
}
echo ‘<center><table width=”50%” border=”0″ cellspacing=”1″ cellpadding=”0″ bgcolo对朋友的祝福语r=”#ff6666″>’;
echo ‘<tr bgcolor=”#ffcc33″>’;
echo “<td>”;
echo ‘<div align=”center”>域名whois查询系统</div>’;
echo “</td>”;
echo “</tr>”;
echo ‘<tr bgcolor=”#ffffff”>’;
echo “<td>”;
echo ‘<div align=”left”>乌鸦8217;;
echo “<br>”;
echo $whois;
echo “</div>”;
echo “</td>”;
echo “</tr>”;
echo ‘<tr bgcolor=”#ffcc33″>’;
echo “<td>”;
echo ‘<div align=”center”><a href=”http://www.phpcode.net”><font face=”verdana, arial, helvetica, sans-rif”>phpcode.net</font></a></div>’;
echo “</td>”;
echo “</tr>”;
echo “</table>”;
?>
本文发布于:2023-04-06 04:54:06,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/6644d70435700b451bccc21cc01ef188.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:一个域名查询的程序.doc
本文 PDF 下载地址:一个域名查询的程序.pdf
留言与评论(共有 0 条评论) |