PHP用于网络的工具函数库
php "Finger",
"traceroute" => "Traceroute",
"whois" => "Whois?"
);
// when included inside
on a html file ..if ($tool=="listtools"){while (list($key, $val) = each($TOOLS)) {print "".$val."n";}exit;}// print appropriate html headerprint "";if ($tool){print "".$tool." for ".$query."n";print "n".$tool." for ".$query." ..n";} else {print "".$app_name."n";print "n".$app_name."n";}// check what tool they want to use and do what is necessaryswitch($tool) {case "finger":if ($query){print "";} else {?>" METHOD="post">Server :Query :}break;case "traceroute":if ($query){print "";} else {?>" METHOD="post">Query :}break;case "whois":if ($query){print "";} else {?>" METHOD="post">This will find .com, .org, and .net domainsServer :Query :}break;default:print "Currently supported tools are:n";while (list($key, $val) = each($TOOLS)) {echo "".$val."n";}print "n";break;}print "n".$app_name." v".$app_version."n";print "n";?>以上就介绍了PHP用于网络的工具函数库,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
n";
finger($server, $query);
print "n";
traceroute($query);
print "n";
whois($server,$query);
print "