Re: How to obtain MAC address of server where PHP is running
| From: | aka MacGuru) | Date: | Sat, 29 May 2004 16:35:30 +0000 |
| Subject: | Re: How to obtain MAC address of server where PHP is running | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187196@lists.php.net to get a copy of this message | ||
Hi, Gerard,
Can you please be so kind to post your code snippet you have described below?
Thanks.
On Saturday 29 May 2004 05:36 pm, Gerard Samuel wrote:
> 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...