I'm running on Win XP IIS, I have tried to figure out why this isn't working, $nbtstat outputs nothing. My safe_mode setting in php.ini is set to "off". I don't have exec included in the disable_functions setting. There something I'm missing here?
$ipaddress = $_SERVER["REMOTE_ADDR"];
$nbtstat = "nbtstat -A ".$ipaddress;
exec($nbtstat, $result);
Then if this worked, this code would execute:
foreach ($result as $row) {
if (strpos($row,"<03>"))
$username = strtok($row," ");
}