function checkHost ($sHost, $iPort = 80) { if (fsockopen ($sHost, $iPort)) { return true; } else { return false; } }