开发者

PHP: is it possible to use php to get the MAC address?

开发者_StackOverflow社区

I'm wondering how can i get the MAC Address using PHP. I look over the manual and i don't see any function to work on this as of now.


Sure, use exec() to run ifconfig (or ipconfig /all on windows) and parse the result.


You can parse the output of "ifconfig" command or you can parse file "/proc/net/arp". They both contain MAC addr.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜