Alibabacloud.com offers a wide variety of articles about get client mac address in php, easily find your get client mac address in php information here online.
Get Server Mac
Copy CodeThe code is as follows:
/**
Obtain the MAC address source of the network card; currently supports Win/linux system
Get the physical (MAC) address of the machine card
**/
Class getmacaddr{
var $result = array (); Returns an
Php obtains the client mac address program code. The mac address is the Nic address. Generally, the user's mac address cannot be obtained, because the security limits the browser, so it is almost impossible to obtain the mac address, the following
MAC address is the network card address is generally unable to get to the user's MAC address, because the security restrictions on the browser so it is almost impossible to obtain, the following two pieces of code for everyone to play.
Example 1
PHP
Get Server Mac
Copy Code code as follows:
/**
Obtain the MAC address origin of the NIC; currently supports Win/linux system
Get the physical (MAC) address of the machine's network card
**/
Class getmacaddr{
var $result = array ();
To make the frames sent by a network adapter receive and process the frames correctly, IEEE stipulates that each network adapter has a unique ethernet address-MAC address (which is called MAC address by IEEE ).
Because the addressing details are
Php obtains the mac address of the server and client to obtain the mac address of the server & lt ;? Php ** obtains the original MAC address of the NIC. Currently, the physical (MAC) address of the NIC can be obtained in WINLINUX ** classGetmacAddr {
PHP Gets the address of the server-side Mac and client Mac
Get Server Mac
For_linux_os (); }break; Default: {$this->for_windows_os (); }break; } $temp _array = Array (); foreach ($this->result as $value)
This article mainly introduces how to get the client's MAC address in PHP and JS separately, the need for friends can refer to the followingDon't say much nonsense, just go to the code!Copy CodeThe code is as follows:Class Macaddr{Public
Get server macCopy codeThe Code is as follows:/**Obtain the MAC address source code of the NIC. Currently, Windows/LINUX systems are supported.Obtain the physical (MAC) Address of the machine Nic**/Class GetmacAddr {Var $ result = array (); //
This article mainly introduces how to obtain the Customer degree MAC address in PHP and JS respectively, need friend can refer to the next
Nonsense not to speak more, directly on the code!
Copy Code code as follows:
class Macaddr
{
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.