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
-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
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.
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
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?
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
-
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
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,
8 matches
Mail list logo