• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how can i get system mac address

#1
i'm using this code

function get_real_mac_addr(){
system('ipconfig /all');
$mycom=ob_get_contents();
$findme = "Physical";
$pmac = strpos($mycom, $findme);
$mac=substr($mycom,($pmac+36),17);
return $mac;
 }


its working in localhost and get mac address but in live server its not working

how can i get mac address in live server??
Reply

#2
on a regular shared hosting server php functions like system(), exec() etc are disabled for security reasons.
Reply

#3
ok then how can i get mac address on shared hosting??
Reply

#4
You should ask your hosting provider for this kind of support.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.