Mailinglisten-Archive |
Marcus Mueller wrote:
>Mein Vorschlag:
>
><?php
>exec("cmd /c ipconfig /all", $sysInfos);
>echo '<pre>'.print_r($sysInfos, true).'</pre>';
>$sysInfo = implode(" ", $sysInfos);
>
>preg_match_all("/([0-9a-fA-F][0-9a-fA-F][-:]){5}([0-9a-fA-F][0-9a-fA-F])/is",
>$sysInfo, $arr, PREG_SET_ORDER);
>
>foreach($arr as $match)
>echo $match[0].'<br>';
>?>
>
>Gruß
>Marcus
danke, funktioniert wie gewünscht...
gruß,
stephan
php::bar PHP Wiki - Listenarchive