Re: [PHP] Get Mac Address

2005-10-11 Thread Ben Sagal
I did mention this is an INTRANET server so all clients are be local, there are no router between the clients and the server. how would i go about accessing arp from php, (the server runs Linux)? Ben On 10/10/05, M. Sokolewicz [EMAIL PROTECTED] wrote: That will give you the *local* mac

RE: [PHP] Get Mac Address

2005-10-11 Thread Jim Moseby
-Original Message- From: Ben Sagal [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 7:05 AM To: M. Sokolewicz Cc: Rory Browne; php-general@lists.php.net Subject: Re: [PHP] Get Mac Address I did mention this is an INTRANET server so all clients are be local

Re: [PHP] Get Mac Address

2005-10-11 Thread Rory Browne
Hi Ben, Try: /* notice the backtics, and that arp on linux usually needs to run as root Which means that you either have to install sudo, or set the suid bit. */ $arpoutput = `/sbin/arp -a`; Do a man arp on linux to see what form of the arp command you want. It's a while since I used it.

[PHP] Get Mac Address

2005-10-09 Thread Ben Sagal
I have a local intranet server, running apache1.3+php4. Is it possible to get the mac address of computes which access on of my php pages? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get Mac Address

2005-10-09 Thread Rory Browne
On unix man arp on windows arp/h arp/help arp/? sorry for short and sweet resp, but I'm falling asleep. On 10/9/05, Ben Sagal [EMAIL PROTECTED] wrote: I have a local intranet server, running apache1.3+php4. Is it possible to get the mac address of computes which access on of my php pages?

Re: [PHP] Get Mac Address

2005-10-09 Thread M. Sokolewicz
That will give you the *local* mac address, not that of the user visiting your page. The problem is the fact that the mac address is not sent as part of the REQUEST. As such it's not possible for PHP to find out what it is. So, unfortunately, no. (Though it's a very common question on this

Re: [PHP] Get Mac Address

2005-10-09 Thread Andrew Brampton
- From: M. Sokolewicz [EMAIL PROTECTED] To: Rory Browne [EMAIL PROTECTED] Cc: Ben Sagal [EMAIL PROTECTED]; php-general@lists.php.net Sent: Sunday, October 09, 2005 11:52 PM Subject: Re: [PHP] Get Mac Address That will give you the *local* mac address, not that of the user visiting your page

Re: [PHP] Get Mac Address

2005-10-09 Thread Rory Browne
On 10/10/05, M. Sokolewicz [EMAIL PROTECTED] wrote: That will give you the *local* mac address, not that of the user visiting your page. The problem is the fact that the mac address is not sent as part of the REQUEST. As such it's not possible for PHP to find out what it is. So, unfortunately,