hi pp!
how to get the online user's MAC address using PHP??
is that possible?
tnks!
how to get the online user's MAC address using PHP?
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: how to get the online user's MAC address using PHP?
First, php is server-based scripting but not client-based, so it can't worknmb wrote:hi pp!
how to get the online user's MAC address using PHP??
is that possible?
tnks!
yes that's right.
but the same we can get IP ADDRESS using $_SERVER['REMOTE_ADDR'],
i thought that I would give MAC ADDRESS by the same way.
mabye using javascript i can get the MAC ADDRESS.
I was only searching in php programming.. mabye the right place to search is javascript programming
tnks!
[/quote]
but the same we can get IP ADDRESS using $_SERVER['REMOTE_ADDR'],
i thought that I would give MAC ADDRESS by the same way.
mabye using javascript i can get the MAC ADDRESS.
I was only searching in php programming.. mabye the right place to search is javascript programming
tnks!
The MAC address isn't passed in an HTTP request. The only way I've found it possible is if your server is also the DHCP server for the user. You can then look in the dhcpd.leases file for the MAC address. Other than that - you're out of luck.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.