Reply to Re: [PHP] LAN IP address

Your name:

Reply:


Posted by John Nichel on 08/29/05 18:19

Philippe Reynolds wrote:
> Hi all,
>
> I would like to find a way to get my computers LAN IP address through
> PHP. I tried using the gethostbyname("HOSTNAME") function, however I
> only got back the 127.0.0.1 address.
>
> Any help is always appreciated
> Cheers
> Phil

Server or client IP?

Server : $_SERVER['SERVER_ADDR']
Client : $_SERVER['REMOTE_ADDR']

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация