<?phperror_reporting(E_ALL ^ E_NOTICE);?><html><head><title> Please enter ?site=www.sitename.com to tracerote </title></head><body> <form name="myform" action="traceroute.php" method="post"><input type="text" name="site" size="60" ><? if ($command) { echo "value=\"$site\"";}?><input name="submit_btn" type="submit" value="Perform Traceroute"></p> <p>Output:</p><textarea cols="80" rows="20" readonly><?php/* By Mike Todd, empt@greynet.net. I know it is ulgly. */ $command = 'traceroute'; if (!$site) echo "Please enter a site to perform the traceroute on";else system($command . " " . $site ." 1> /tmp/output.txt 2>&1; cat /tmp/output.txt; rm /tmp/output.txt");?></textarea></form></body></html>