How does php obtain the mac address?

Source: Internet
Author: User
Provides various official and user-released code examples. For code reference, you are welcome to learn how to use php to get a mac address? As we all know, the mac address is the only identifier of the computer in the world, so this is very practical. For example, to do a voting function, the mac address is essential, if you simply rely on ip addresses to determine this is definitely not accurate, the water is too large, the ip is basically dynamic, you can just brush the ticket, so at this time, you have to rely on the mac address to complete this function. So if you want to get the mac address of your computer in php? See the following code:
$ Mac = new GetMacAddr (PHP_ OS );
Echo $ mac-> mac_addr;
The GetMacAddr class can be used directly in the original text.
Address: http://www.bieanju.com/138.html

AD: truly free, domain name + VM + enterprise mailbox = 0 RMB

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.