php得到网卡mac地址
作者:admin 日期:2006-07-29
PHP代码:--------------------------------------------------------------------------------
<?php
$command = escapeshellcmd("nbtstat -A " . $_SERVER["REMOTE_ADDR"]);
if (strtolower(substr(PHP_OS, 0, 3)) == "win")
{
exec($command, $result);
array_pop($result);
print substr(array_pop($result), 18);
}
else
{
print "THE OS IS NOT WINDOWS 2000";
}
?>
<?php
$command = escapeshellcmd("nbtstat -A " . $_SERVER["REMOTE_ADDR"]);
if (strtolower(substr(PHP_OS, 0, 3)) == "win")
{
exec($command, $result);
array_pop($result);
print substr(array_pop($result), 18);
}
else
{
print "THE OS IS NOT WINDOWS 2000";
}
?>
评论: 0 | 引用: 63 | 查看次数: 2659
发表评论