看看这个行不 $max_count)
{
echo 'Maximum for count is: '.$max_count;
echo '[url=]Back[/url]';
}
else
{
// replace bad chars
$host= preg_replace ("/[^A-Za-z0-9.-]/","",$host);
$count= preg_replace ("/[^0-9]/","",$count);
echo '';
echo("Ping Output:
");
echo '';
//check target IP or domain
if ($unix)
{
system ("ping -c$count -w$count $host");
system("killall ping");// kill all ping processes in case there are some stalled ones or use echo 'ping' to execute ping without shell
}
else
{
system("ping -n $count $host");
}
echo '';
}
}
else
{
echo '';
echo 'Your IP is: '.$ip.'
';
echo '';
echo ' Enter IP or Host ';
echo ' Enter Count ';
echo ' ';
echo '';
echo ' '.$system.'';
echo '';
}
?>