CodeIgniter Forums

Full Version: how can i get system mac address
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i'm using this code

function get_real_mac_addr(){
system('ipconfig /all');
$findme = "Physical";
$pmac = strpos($mycom, $findme);
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??
on a regular shared hosting server php functions like system(), exec() etc are disabled for security reasons.
ok then how can i get mac address on shared hosting??
You should ask your hosting provider for this kind of support.