0){ return true;} else { return false; } } $arp_found = false; function arp_lookup($ip) { global $arp_found; $arp = shell_exec("/usr/sbin/arp -a | grep $ip"); preg_match('/at ([0-9a-f]{2}[: ]){6}/i',$arp,$matches); if(sizeof($matches) > 0) { $mac = split(" ",$matches[0]); $arp_found = true; return $mac[1]; } else { $arp_found = false; return ""; } } include('header-inc.php'); ?>