Solution for obtaining client MAC address for PHP website
Now there is a PHP website, want to get access to the customer's MAC address, which Danale have any good solution, please tell my brother, thank you.
All you can get is the client's IP address, browser information.
The MAC address is definitely not available unless you make the client-side security control ...
------Solution--------------------
Unless the execution segment bat or shell script gets
------Solution--------------------
Execute the command with exec and try it.
------Solution--------------------
Let the user input, this is the best way
------Solution--------------------
You have to have a way, remember to post it!
------Solution--------------------
Define (' Exec_tmp_dir ', ' C:\WINDOWS\Temp ');
This window XP can, I have done the test. On top of my machine, I can. I think you can change the window, but the temp file may not be the same location
------Solution--------------------
Define (' Exec_tmp_dir ', ' C:\WINDOWS\Temp ');
echo windexec (' Ipconfig/all ', ' FG ');
On my machine can be, estimate window can be, just to change the location of the temp file.
------Solution--------------------
Explore
------Solution--------------------
One scenario is to implement the server's own module and a PHP module to get the Mac
On time according to principle PHP is generally CGI fastcgi or module
So this has to be done by the server (IIS Apache or Ngnix, etc.)
And then this data has to be passed to PHP
So we have to do a PHP module to receive and handle this
Looks like it's not easy.
------Solution--------------------
This is really hard.
------Solution--------------------
What is the use of getting a MAC without knowing how to do it?
It is important to know that Macs are not cross-web, that is, if you pass through a router
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.