Re: [PHP] Mac Address Lookup
I guess I should have put this in one post Your subject says something different then your question, one asking for the computer name, the other the MAC. To get the MAC the computer will need to be on your LAN, otherwise this is not possible. You can then use the 'arp' command to get the MAC address. HTH -Brad - Original Message - From: skate <[EMAIL PROTECTED]> Date: Friday, July 18, 2003 12:28 pm Subject: Re: [PHP] Mac Address Lookup > very little chance, a machine won't transmit it's MAC address, > that the main > point of the TCP/IP stack is to convert IP address' into MAC > address' at > routers and such. > > - Original Message - > From: "Ashwin Kutty" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, July 18, 2003 5:19 PM > Subject: [PHP] Mac Address Lookup > > > > I am trying to do a lookup of a Mac Address via PHP. Is there > any way to > > do so like gethostbyaddr that gets me the name of a machine? > > > > Thanks. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac Address Lookup
If you have the IP address, then 'nslookup' or I guess now 'dig' and 'host' would be the newere versions. They are Linux system calls, use system() or exec() to use them within your script, and play around with the options and/or read the man pages for how to use them. HTH -Brad - Original Message - From: skate <[EMAIL PROTECTED]> Date: Friday, July 18, 2003 12:28 pm Subject: Re: [PHP] Mac Address Lookup > very little chance, a machine won't transmit it's MAC address, > that the main > point of the TCP/IP stack is to convert IP address' into MAC > address' at > routers and such. > > - Original Message - > From: "Ashwin Kutty" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, July 18, 2003 5:19 PM > Subject: [PHP] Mac Address Lookup > > > > I am trying to do a lookup of a Mac Address via PHP. Is there > any way to > > do so like gethostbyaddr that gets me the name of a machine? > > > > Thanks. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mac Address Lookup
very little chance, a machine won't transmit it's MAC address, that the main point of the TCP/IP stack is to convert IP address' into MAC address' at routers and such. - Original Message - From: "Ashwin Kutty" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 18, 2003 5:19 PM Subject: [PHP] Mac Address Lookup > I am trying to do a lookup of a Mac Address via PHP. Is there any way to > do so like gethostbyaddr that gets me the name of a machine? > > Thanks. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mac Address Lookup
I am trying to do a lookup of a Mac Address via PHP. Is there any way to do so like gethostbyaddr that gets me the name of a machine? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php