最近我购买了exeoutphp软件,因为我想得到用户的系统mac地址, 注意:下面的代码在wampserver中工作正常
<?php
// Turn on output buffering
ob_start();
//Get the ipconfig details using system commond
system('ipconfig /all');
// Capture the output into a variable
$mycom=ob_get_contents();
// Clean (erase) the output buffer
ob_clean();
$findme = "Physical";
//Search the "Physical" | Find the position of Physical text
$pmac = strpos($mycom, $findme);
// Get Physical Address
echo $mac=substr($mycom,($pmac+36),17);
//Display Mac Address
?>
错误消息:PHP错误:PHP警告:system():无法fork [ipconfig / all]。
请帮帮我。
谢谢!