Re: Find MAC Address in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.
Sorry for my bad english. :(

Maybe you could write a simple deamon program in C or even in PHP to be run as 
root. The function of this deamon program is to listen to a port (eg. 10000) 
and you could fsockopen it and send the IP address of the client computer and 
the deamon returns the MAC address of that computer. I used this kind a 
scheme for another problem so I guess this works.


2007. április 20. 22.00 dátummal Nathaniel Hall ezt írta:
> Hi all,
>
> I am attempting to find the MAC address of systems visiting my page from
> the local LAN.  I have tried several things, but it appears it will not
> let me run system commands.  For example, running <?php $MAC =
> system("arp 192.168.200.254"); echo $MAC; ?>" does not give me any
> output.  I have copied arp to a place that the apache user can execute
> from and ensured arp is executable.
>
> This is on a Fedora Core 6 box running PHP 5.1.6-3.4 and Apache
> 2.2.3-5.  Any help is appreciated.
>
> --
> Nathaniel Hall

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux