Re: How to obtain MAC address of server where PHP is running
| From: | Gerard Samuel | Date: | Sat, 29 May 2004 14:36:25 +0000 |
| Subject: | Re: How to obtain MAC address of server where PHP is running | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187194@lists.php.net to get a copy of this message | ||
On Saturday 29 May 2004 10:21 am, Andrei Verovski (aka MacGuru) wrote:
> Hi,
>
> Anyone knows ho to obtain MAC address of server where PHP is running (with
> PHP function, of course)?
>
> Thanks in advance for any suggestion(s)
>
I use passthru() to execute shell commands, and use preg_match() to get the
MAC address.
Unfortunately, this would only work if passthru() isn't disabled, and
safe_mode is off...