sorry, mein fehler!
ich hab nochma in meinen archiven gekramt, und das hier gefunden:
function getMac ( $Ip) {
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$output = shell_exec("nbtstat -a $Ip");
$output = explode("\n",$output);
$mac_line = explode ("=", $output[ sizeof($output)-3 ]);
$sMacAddress = trim($mac_line[1]);
} else {
$location = `which arp`;
$arpTable = `$location -n $Ip`;
$arpSplitted = split("\n",$arpTable);
foreach ($arpSplitted as $value) {
$valueSplitted = split(" ",$value);
foreach ($valueSplitted as $spLine) {
if (preg_match("/$Ip/",$spLine)) {
reset($valueSplitted);
foreach ($valueSplitted as $spLine) {
if (preg_match("/[0-9a-f][0-9a-f][:-]".
"[0-9a-f][0-9a-f][:-]".
"[0-9a-f][0-9a-f][:-]".
"[0-9a-f][0-9a-f][:-]".
"[0-9a-f][0-9a-f][:-]".
"[0-9a-f][0-9a-f]/i",$spLine)) {
$sMacAddress = $spLine;
break;
}
}
}
}
}
}
return $sMacAddress;
}
[/PHP]