' . $host . ':' . $port . ' ' . '(' . getservbyport($port, 'tcp') . ') is open.' . "\n";
fclose($connection);
}
else
{
echo '
' . $host . ':' . $port . ' is not responding.
' . "\n";
$fail = yes;
}
}
if ( $fail == "yes" ) {
print 'please check server motd - issues found cpanel.bateworld.com';
} else {
echo 'OK ! No failures found!';
}