Re: [PHP] Find MAC Address in PHP

2007-04-26 Thread Nathaniel Hall
chris smith wrote: On 4/25/07, Nathaniel Hall [EMAIL PROTECTED] wrote: Davi wrote: Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu: On Fri, April 20, 2007 3:00 pm, Nathaniel Hall wrote: ?php $MAC = system(arp 192.168.200.254); echo $MAC; ? does not give me any output. I have

RE: [PHP] Find MAC Address in PHP

2007-04-24 Thread Daevid Vincent
@lists.php.net Subject: [PHP] Find MAC Address in PHP 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

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread Tijnema !
On 4/23/07, Davi [EMAIL PROTECTED] wrote: Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu: On Fri, April 20, 2007 3:00 pm, Nathaniel Hall wrote: ?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

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread Davi
Em Terça 24 Abril 2007 10:07, Tijnema ! escreveu: On 4/23/07, Davi [EMAIL PROTECTED] wrote: Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu: On Fri, April 20, 2007 3:00 pm, Nathaniel Hall wrote: ?php $MAC = system(arp 192.168.200.254); echo $MAC; ? does not give me any

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread Tijnema !
On 4/24/07, Davi [EMAIL PROTECTED] wrote: Em Terça 24 Abril 2007 10:07, Tijnema ! escreveu: On 4/23/07, Davi [EMAIL PROTECTED] wrote: Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu: On Fri, April 20, 2007 3:00 pm, Nathaniel Hall wrote: ?php $MAC = system(arp 192.168.200.254);

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread Davi
Em Terça 24 Abril 2007 10:49, Tijnema ! escreveu: On 4/24/07, Davi [EMAIL PROTECTED] wrote: How you'll type your root pwd? =P Something with the proc_* functions as you need bi-directional streams (input/output). Something like this: (not tested, partly copied form example 1926) ?php

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread chris smith
On 4/24/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/24/07, Davi [EMAIL PROTECTED] wrote: Em Terça 24 Abril 2007 10:07, Tijnema ! escreveu: On 4/23/07, Davi [EMAIL PROTECTED] wrote: Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu: On Fri, April 20, 2007 3:00 pm, Nathaniel Hall

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread Nathaniel Hall
Richard Lynch wrote: On Fri, April 20, 2007 3:00 pm, Nathaniel Hall wrote: 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

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread Nathaniel Hall
Davi wrote: Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu: On Fri, April 20, 2007 3:00 pm, Nathaniel Hall wrote: ?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

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread Puskás Zsolt ( Errotan )
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. 1) and you could fsockopen it and send the IP address of the client computer and the deamon returns the MAC

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread Lori Lay
Nathaniel Hall wrote: Davi wrote: I know it can be done because I have a Fedora Core 4 system doing it right now. I didn't have to do anything special for it to work. The system I am working on now is a Fedora Core 6 box. In /var/log/messages I receive: Apr 24 09:33:51 STUAUTH kernel:

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread Tijnema !
On 4/24/07, chris smith [EMAIL PROTECTED] wrote: On 4/24/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/24/07, Davi [EMAIL PROTECTED] wrote: Em Terça 24 Abril 2007 10:07, Tijnema ! escreveu: On 4/23/07, Davi [EMAIL PROTECTED] wrote: Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu:

Re: [PHP] Find MAC Address in PHP

2007-04-24 Thread chris smith
On 4/25/07, Nathaniel Hall [EMAIL PROTECTED] wrote: Davi wrote: Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu: On Fri, April 20, 2007 3:00 pm, Nathaniel Hall wrote: ?php $MAC = system(arp 192.168.200.254); echo $MAC; ? does not give me any output. I have copied arp to a place

Re: [PHP] Find MAC Address in PHP

2007-04-23 Thread Davi
Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu: On Fri, April 20, 2007 3:00 pm, Nathaniel Hall wrote: ?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

Re: [PHP] Find MAC Address in PHP

2007-04-22 Thread Richard Lynch
On Fri, April 20, 2007 3:00 pm, Nathaniel Hall wrote: 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);

Re: [PHP] Find MAC Address in PHP

2007-04-21 Thread Zoltán Németh
] To: php-general@lists.php.net Sent: Friday, April 20, 2007 10:00 PM Subject: [PHP] Find MAC Address in PHP 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

Re: [PHP] Find MAC Address in PHP

2007-04-21 Thread Satyam
Sent: Saturday, April 21, 2007 9:10 AM Subject: Re: [PHP] Find MAC Address in PHP The OP said he wants MACs for the machines on his local LAN. In that case I don't think he would have meet the things you said. greets Zoltán Németh 2007. 04. 21, szombat keltezéssel 07.49-kor Satyam ezt írta

[PHP] Find MAC Address in PHP

2007-04-20 Thread Nathaniel Hall
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

Re: [PHP] Find MAC Address in PHP

2007-04-20 Thread Daniel Brown
Usually arp on Linux requires the user to be logged in as root. If you can run it, try this: ? ob_start(); passthru('arp '.$ip_addr); $MAC = ob_get_contents(); ob_end_clean(); ? On 4/20/07, Nathaniel Hall [EMAIL PROTECTED] wrote: Hi all, I am attempting to find the MAC address of

Re: [PHP] Find MAC Address in PHP

2007-04-20 Thread Satyam
. Satyam - Original Message - From: Nathaniel Hall [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, April 20, 2007 10:00 PM Subject: [PHP] Find MAC Address in PHP Hi all, I am attempting to find the MAC address of systems visiting my page from the local LAN. I have tried