seemsiyah adlı üyeden alıntı: mesajı görüntüle
yukarıdaki kodu ben win 7de deniyorum, wamp kurulu çalışıyor. beyaz da çalışmıyor ancak. sunucunun safe mod kapalı...
Semih safe bende de kapalı..Bende appserv üzerinden deniyorum ama göstermiyor mac leri


edit:

<?php
/*
* Getting MAC Address using PHP
* Md. Nazmul Basher
*/

ob_start(); // Turn on output buffering
$sistem = system('ipconfig /all'); //Execute external program to display output
$mycom=ob_get_contents(); // Capture the output into a variable
ob_clean(); // Clean (erase) the output buffer

$findme = "Fiziksel";
$pmac = strpos($mycom, $findme); // Find the position of Physical text
$mac=substr($mycom,($pmac+36),17); // Get Physical Address

echo $mac;
if($sistem == false){ echo "hata"; }
?>
bu çekiyor ama hangi mac :d