Location: PHPKode > projects > Students Community Intranet > inc.ping.php
<?php
function ping($ip){
	exec("ping -n 1 -w 200 $ip", $tab);
	if($tab[3]{0}=='D'){
		return false;
	}else{
		if($tab[3]{0}=='R'){
			return true;
		}else{
			return false;
		}
	}
}
?>
Return current item: Students Community Intranet