Page 1 of 1

another way of getting IP

Posted: Fri Aug 08, 2003 2:45 am
by theclay7
hello there,

I want to know if there is another way to get IP address BESIDES using:

$HTTP_SERVER_VARS['REMOTE_ADDR'] ; OR

$GLOBALS[REMOTE_ADDR]; OR

getenv ("REMOTE_ADDR"); OR

$_SERVER['REMOTE_ADDR'] ;

what other way to do that?

Posted: Fri Aug 08, 2003 7:28 am
by skateis2s
This is my fav way even know you listed it...

<? echo $HTTP_SERVER_VARS['REMOTE_ADDR']; ?>

so you can put like


Your IP: <? echo $HTTP_SERVER_VARS['REMOTE_ADDR']; ?>