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
Make an application that automatically logs on to Windows Server Based on the MAC address in the Intranet. The function is as follows:
Make an application that automatically logs on to Windows 2003 based on the MAC address in the Intranet. The
Make an application that automatically logs on to Windows Server based on the MAC address in the intranet. the function is as follows:
Copy codeThe code is as follows:
Function ce_getmac ()
{
If (PHP_ OS = 'winnt ')
{
$ Return_array = array ();
$
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
This section shares the PHP code, the main features:
Gets the physical (MAC) address of the machine card.
Code:
Copy CodeThe code is as follows:
/*** Get the physical (MAC) address of the machine card* Currently supports Win/linux system**/Class
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 ();
Php code for obtaining unique computer ID information (cpu, network card, MAC address)
The php code obtains the unique identifier information of a computer, including cpu information, network card information, and MAC address information.
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.