I am trying to fetch the MAC address. i have written the following code,
$mac =get_mac();
print_r($mac);
function get_mac()
{
exec('ipconfig/all',$output);
return $output ;
}
It gives me out-put : Array()
And not the whole output of ipconfig/all as i am getting while running on DOS prompt.
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 ?