[PHP-WIN] Re: Getting my IP adress (not 127.0.0.1)

2002-11-28 Thread erythros
here's a simple way "Steve Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "Michael Delorme" <[EMAIL PROTECTED]> 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 alway

[PHP-WIN] Re: Getting my IP adress (not 127.0.0.1)

2002-11-27 Thread Steve Yates
"Michael Delorme" <[EMAIL PROTECTED]> 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 gethost