For Win9x, use winipcfg instead of ipconfig.
--- Chris Lee <[EMAIL PROTECTED]> wrote:
> >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
> 


=====
Mark Weinstock
[EMAIL PROTECTED]
***************************************
You can't demand something as a "right" unless you are willing to fight to death to 
defend everyone else's right to the same thing.
***************************************

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to