ok this is great to show your users what Services you have online. i'm currently using it for it to check my Website, my IRC Server and my Eggdrop. this is great, you just upload it, change the IP or anything else and its set to go
i've set it up for just IRC Server and Website. so its pretty good
and the two images are located here. http://www.hawkee.com/profile/img/190/ ---- thats on.gif
http://www.hawkee.com/profile/img/191/ ---- thats off.gif
<?php
$server = "127.0.0.1";
$port = "80";
$port2 = "6667";
$timeout = "10";
if ($server and $port and $timeout) {
$verbinding = @fsockopen("$server", $port, $errno, $errstr, $timeout);
$ircbinding = @fsockopen("$server", $port2, $errno, $errstr, $timeout);
}
if($verbinding) {
echo "<img src='./images/on.gif'>Website is online<br>";
}
else {
echo "<img src='./images/off.gif'>Website is offline<br>";
}
if($ircbinding) {
echo "<img src='./images/on.gif'>IRC Server is online<br>";
}
else {
echo "<img src='./images/off.gif'>IRC Server is offline<br>";
}
?>