| Chung Leong 2004-07-20, 8:55 pm |
|
"steve" <UseLinkToEmail@dbForumz.com> wrote in message
news:TvgLc.55193$5Y.34823@cyclops.nntpserver.com...
> Hi, I am running apache on local pc/ under Windows.
>
> I need to figure out the ip number of the pc inside PHP. This is the
> number available when you do ipconfig, and not the 127.0.0.1!
>
> So the slow way I have figured out is to do a system call to doc,
> using `ipconfig`, and then regex the result and figure out the ip.
> Is there a fater/more efficient way to do this?
>
> --
> http://www.dbForumz.com/ This article was posted by author's request
> Articles individually checked for conformance to usenet standards
> Topic URL:
http://www.dbForumz.com/PHP-Find-lo...pict131475.html
> Visit Topic URL to contact author (reg. req'd). Report abuse:
http://www.dbForumz.com/eform.php?p=438714
gethostbynamel($dns_name_of_computer).
|