This file contains hidden or 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 | |
/** | |
* Get the all interface mac addresses. | |
* | |
* @return array|integer Return the MAC adresses as an array OR if the exec() call failed the return will be the error code from "ipconfig /all". | |
*/ | |
function get_ethernet_addresses() | |
{ | |
$physicalAddresses = array(); | |
$ipconfig_output = array(); |