查找MAC地址 [英] Finding MAC Address
问题描述
嘿
任何人都知道如何使用php找到我的系统mac地址。
它非常紧急.. ...
提前感谢
Ravindra.Y
Hey
any body knows how can i find my system mac address using php.
it''s very urgent.....
thanks in advance
Ravindra.Y
推荐答案
2007年5月24日星期四23:02:14 -0700,Ravi让他的猴子输入:
At Thu, 24 May 2007 23:02:14 -0700, Ravi let his monkeys type:
嘿
任何人都知道如何使用php找到我的系统mac地址。
它非常紧急.....
提前感谢
Ravindra.Y
Hey
any body knows how can i find my system mac address using php.
it''s very urgent.....
thanks in advance
Ravindra.Y
我不认为'可以直接来自PHP 。
PEAR有一个MAC地址验证器(Net-MAC),但是没有读出你的
HWaddr,它只接受字符串。
在linux上你可以使用exec()和一个包装ifconfig命令的脚本
和grep for HWadd,或者使用arp。脚本可能需要运行suid
在windows上你正在寻找ipconfig(XP及以上版本),但我认为你需要
一些额外的工具来成功生成操作系统进程和返回输出。
想到pstools这个名字。不确定这是否正确
为什么你想要/需要发现*服务器的* MAC地址
动态超出我的要求虽然。
但是我打赌它有用的有效用途!
Sh。
I don''t think that''s possible directly from PHP.
PEAR has a MAC-address validator (Net-MAC), but that doesn''t read out your
HWaddr, it just accepts strings.
On linux you could use exec() with a script wrapping the ifconfig command
and grep for HWadd, or use arp. Script probably needs to run suid
On windows you are looking for ipconfig (XP and up), but I think you need
some additional tool to succesfully spawn OS processes and return output.
The name pstools comes to mind. Not sure if that''s correct
Why you would want/need to discover the *server''s* MAC address
dynamically is beyond me though.
But I bet there are valid uses for it!
Sh.
谢谢我使用ifconfig工作正常。
Thanks i used ifconfig it is working fine.
2007年5月24日星期四23:56:54 -0700,Ravi让他的猴子输入:
At Thu, 24 May 2007 23:56:54 -0700, Ravi let his monkeys type:
谢谢我使用ifconfig它工作正常。
Thanks i used ifconfig it is working fine.
是的,你能说出它的实际用途吗?好奇!
Sh。
Yw, could you tell what practical use this has ? Curious!
Sh.
这篇关于查找MAC地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!