For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > September 2004 > getenv() alternative









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author getenv() alternative
Philip Thompson

2004-09-29, 8:03 pm

Hi all.

I am needing to obtain the IP address of a user who logs into the
system. I tried to use `getenv("REMOTE_ADDR")`, however, this function
does not work in ISAPI mode, which is what I am running.

Is there an alternative to obtaining the IP address? I have looked
around, but I cannot seem to find anything.

Thanks in advance,
~Philip
Philip Thompson

2004-09-29, 8:03 pm

Oh, before I get a slew of emails about this one, I think I figured it
out: $_SERVER['REMOTE_ADDR']

I knew it couldn't have been that difficult... brain fart! Sorry for
wasting your time.

~Philip

On Sep 29, 2004, at 5:02 PM, Philip Thompson wrote:

> Hi all.
>
> I am needing to obtain the IP address of a user who logs into the
> system. I tried to use `getenv("REMOTE_ADDR")`, however, this function
> does not work in ISAPI mode, which is what I am running.
>
> Is there an alternative to obtaining the IP address? I have looked
> around, but I cannot seem to find anything.
>
> Thanks in advance,
> ~Philip
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com