Hello, i try to make a script to check if my server are online or offline:
<?
$server = "12.34.56.78";
$check = @fsockopen($server, 22);
if ($check) {
@fclose($check);
echo "online";
exit;
}else{
echo "offline";
}
?>
so this script works, but how can i make the script that i can check more than one ip address?
Greetings, matthias