>Try this: ><?php >exec('ipconfig',$catch); >foreach($catch as $line){ > if(eregi('IP Address',$line)){ > list($t,$ip) = split(':',$line); > echo 'IP is '.$ip."\n"; > } >} >?>
Thanks Tom, but I think it only work for Win NT, how about Win 9x? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php