Re: Getting my IP adress (not 127.0.0.1)

From: Date: Thu, 28 Nov 2002 07:39:39 +0000
Subject: Re: Getting my IP adress (not 127.0.0.1)
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-17182@lists.php.net to get a copy of this message
"Michael Delorme" <michael@delorme.nom.fr> wrote > However I only get 127.0.0.1 > But I want the "public" dynamic adress my ISP gave me, Don't use localhost, that's always 127.0.0.1 by definition. You didn't say what server you are using but if it's Apache try... getenv('SERVER_ADDR'); or gethostbynamel(getenv('HTTP_HOST')); phpinfo() should tell you what environment variables are available for your server. - Steve Yates - I have nothing against MS-DOS, stone knives, or bearskins. ~ Taglines by Taglinator - www.srtware.com ~

« previous php.windows (#17182) next »