Hopelijk kan en wil iemand mij opweg helpen.
Ik zou graag een script willen, die mijn subdomein check of hij on of off line is.
Ik heb aantal subdomeinen, en zou op één pagina willen /kunnen zien of ze online zijn.
Ik kom wel wat scripts tegen, maar krijg niets te zien. Bijvoorbeeld :
<?PHP
$ts_ip = "http://travel.jrstudios.nl"; // Change to your server's IP external or domain name
$ts_port = "80"; // Make sure this port is open on the router or firewall
$output = @fsockopen("$ts_ip", $ts_port, $errno, $errstr, 2);
socket_set_timeout($output, 000002);
if (!$output) {
echo "<FONT COLOR=#DD0000><B>OFFLINE</B></FONT>";
} else {
echo "<FONT COLOR=#00DD00><B>ONLINE</B></FONT>";
}
@fclose($output);
?>
Maar op www.jrstudios.nl/check/ is niets te zien.