一个用于网络的工具函数库
作者 佚名技术
来源 NET编程
浏览
发布时间 2012-05-25
tch($tool) { case "finger": if ($query) { print "<PRE>n"; finger($server, $query); print "</PRE>"; } else { ?> <FORM ACTION="<?PHP echo($PHP_SELF. "?tool=".$tool); ?>" METHOD="post"> Server : <INPUT TYPE="text" NAME="server" VALUE="localhost"> <BR> Query : <INPUT TYPE="text" NAME="query" SIZE="40" MAXLENGTH="100"> <BR> <INPUT TYPE="submit" VALUE="Finger"> </FORM> <?PHP } break; case "traceroute": if ($query) { print "<PRE>n"; traceroute($query); print "</PRE>"; } else { ?> <FORM ACTION="<?PHP echo($PHP_SELF. "?tool=".$tool); ?>" METHOD="post"> Query : <INPUT TYPE="text" NAME="query" SIZE="40" MAXLENGTH="100"> <BR> <INPUT TYPE="submit" VALUE="Trace route"> </FORM> <?PHP } break; case "whois": if ($query) { print "<PRE>n"; whois($server,$query); print "</PRE>"; } else { ?> <!-- <UL> To look up a NIC handle, host name, or registrant, use one of the keywords below:<BR> <LI>To search by NIC handle (or contact), type "handle WA3509"</LI><BR> <LI>To search by name, type "name lastname, firstname" </LI><BR> <LI>To search by company name, type "name The Sample Corporation" </LI><BR> <LI>To search by domain name, type "example.com" </LI><BR> <LI>To search by IP address, type "host 121.23.2.7" </LI><BR> <LI>To search by host or nameserver name, type "host ns1.worldnic.com" </LI><BR> (examples are from networksolutions.com) </UL> --> <FORM ACTION="<?PHP echo($PHP_SELF. "?tool=".$tool); ?>" METHOD="post"> This will find .com, .org, and .net domains<BR> Server : <INPUT TYPE="text" NAME="server" VALUE="rs.internic.net"> <BR> Query : <INPUT TYPE="text" NAME="query" SIZE="40" MAXLENGTH="100"> <BR> <INPUT TYPE="submit" VALUE="<?PHP echo $TOOLS[$tool]; ?>"> </FORM> <?PHP } break; default: print "<UL>Currently supported tools are:n"; while (list($key, $val) = each($TOOLS)) { echo "<LI><A HREF="".$PHP_SELF."?tool=".$key."">".$val."</A></LI>n"; } print "</UL>n"; break; } print "n<HR><SMALL>".$app_name." v".$app_version."</SMALL>n"; |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于一个用于网络的工具函数库的所有评论