retrieving mac address

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: retrieving mac address

Post by pickle »

Unless you're running on an internal network, no there isn't. The MAC address isn't available on the networking layer Apache & PHP work on.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
strafingmoose
Forum Newbie
Posts: 15
Joined: Mon Apr 18, 2011 2:56 pm

Re: retrieving mac address

Post by strafingmoose »

You might be able to find the information using the ping command and parsing the output of it.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: retrieving mac address

Post by pickle »

Nope, MAC addresses are layer 2, IPs are layer 3.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply