tags:

views:

27

answers:

2

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.

Any suggestions or ideas would be much appreciated. Thanks!

+2  A: 

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

Anthony Chivetta
I do hope he's running Linux though.
zneak
A: 

Hello, it is possible.

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

Frodik