I am trying to fetch the MAC address. i have written the following code,
Expand|Select|Wrap|Line Numbers
- $mac =get_mac();
- print_r($mac);
- function get_mac()
- {
- exec('ipconfig/all',$output);
- return $output ;
- }
If i put "date" instead of "ipconfig/all" I am getting perfect answer of
Array ( [0] => Mon Jun 30 11:16:16 PDT 2008 )
But not for ipconfig , what is wrong with that ?