ppi.txt');
} else {
// echo 'This is a server not using Windows!';
exec('sh -c "lsof -i:' . $gp . '" > ppi.txt');
}
echo "
";
if (str_replace(" ","",file_get_contents("ppi.txt")) == "" && ($gp == 'nowayjose' || $gp == '')) {
echo ""; //
What process uses a designated port?
";
$gp = "80";
} else if (str_replace(" ","",file_get_contents("ppi.txt")) == "") {
echo "
That port " . $gp . " has no activity associated with it.
";
} else {
echo "
" . str_replace("\n", "
", file_get_contents("ppi.txt")) . "
";
}
echo "
What process uses a designated port?
";
?>