PHP Website Status Online Check
Website Status Online Check
<?
function online($link) {
if (isset($link) && $link != "") {
$part = explode(":",$link);
if (empty($part[1])) { $part[1] = 80; }
$churl = @fsockopen($link, $part[1], $errno, $errstr, 20);
if (!$churl) { echo "ON http://$link (Offline)<BR>"; }
else { echo "OFF http://$link (Online)<BR>"; }
}
}
online("google.com");
?>