PHP gets client mac and IP address JS code embedding failed
After a variety of Baidu, a variety of search, came to the conclusion that PHP code can only obtain the server Mac, unable to obtain the client MAC,IP address can only obtain the client extranet IP, can not obtain the actual network IP (192.168.1.***)
So turn to use JS method, copy the online search procedures, seemingly everyone use the following method, but there are two deadly problems.
1. html files can be run directly to get Mac and IP address, but only in IE browser, and need to get user license to run ActiveX control, Google, Firefox, Safari simply can not respond.
2, the inside of the JS code embedded in PHP, the local localhost test always error (unrecognized, * * * is empty, etc.), upload to the server of course not.
Very headache, the first problem estimate can not be solved, the second problem may be my own reason, there is no PHP page with localhost debugging success?
<title>WMI Scripting HTML</title>
------to solve the idea----------------------
Wrong, sorry.
------to solve the idea----------------------
Dead heart, landlord Baidu Google a half-day, is to understand PHP and JS where to run.
------to solve the idea----------------------
References:
references:
Forget it.
Is there no way to implement this function? If it's not possible, I'll stick it out and think of another way
.
Knot immediately.
Write browser plugin write desktop CS program
------to solve the idea----------------------
PHP only runs on the server side. is not able to get the client's stuff