Authentication
|
|
|
|
<?php
//onlineCheck("www.google.com", "This site is online", "This site is NOT online");
function onlineCheck($url, $good, $bad) { $url = str_replace("http://", "", $url); $url = str_replace("https://", "", $url); $fp = @fsockopen($url, 80);
if (!$fp) {
return $bad;
} else { fclose($fp);
return $good;
}
?>
|
|
|
Usage Example
|
|
|
Rate This Script
|
|
|
|