-
-
Save RajeshPatadiya/9dab56124b0c1ad1c3c63190165c1a35 to your computer and use it in GitHub Desktop.
How to find MAC address of your visitor using PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ob_start(); | |
system('ipconfig /all'); | |
$mycom=ob_get_contents(); | |
ob_clean(); | |
$findme = "Physical"; | |
$pmac = strpos($mycom, $findme); | |
$mac=substr($mycom,($pmac+36),17); | |
echo $mac; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment