PHP学会网 php培训网 PHP暑期培训 PHP寒假培训 PHP假期培训 » PHP资源共享 » 用php得到网卡mac
本页主题: 用php得到网卡mac 打印 | 加为IE收藏 | 收藏主题 | 上一主题 | 下一主题

自由的龙

该用户目前不在线
级别: 中级程序员
精华: 1
发帖: 1264
威望: 1267 点
金钱: 12660 PYMB
贡献值: 0 点
在线时间:0(小时)
注册时间:2006-04-16
最后登录:2006-06-27

用php得到网卡mac


<?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";
}
?>
顶端 Posted: 2006-04-20 09:10 | [楼 主]
PHP学会网 php培训网 PHP暑期培训 PHP寒假培训 PHP假期培训 » PHP资源共享

时:11-23 21:33 Copyright © 2006 phpwhy.com 权
ICP05060669

曳息 -