Page 1 of 1

$REMOTE_ADDR ever heard of it?

Posted: Tue May 20, 2003 7:22 pm
by mikusan
Anyone know what are functions that determine user information such as the ip adress and related... i remember seeing and even using $REMOTE_ADDR but it doesn't work anymore... at least it remains blank for me...

Posted: Tue May 20, 2003 7:27 pm
by will
it's part of the $_SERVER array...

http://www.php.net/manual/en/reserved.variables.php

Posted: Tue May 20, 2003 7:28 pm
by mikusan
Bugger... i found out... well for those interested the php manual spits out that it didn't find anything... apparently there are some nifty things you can do at the following address http://www.php.net/manual/en/reserved.v ... les.server

I thought at first you hadta add the $_SERVER['REMOTE_ADDR'] but i am unsure if that is the case but you don't need that and can in fact call this by simply typing $REMOTE_ADDR

Hope this helps some...as it struck me for a while...[/url]

Posted: Tue May 20, 2003 7:29 pm
by mikusan
HAHA sorry we posted at the same time...thx anyways... :D

Posted: Wed May 21, 2003 2:44 am
by twigletmac
mikusan wrote:I thought at first you hadta add the $_SERVER['REMOTE_ADDR'] but i am unsure if that is the case but you don't need that and can in fact call this by simply typing $REMOTE_ADDR
If register_globals is off (and it's off by default) you have to use the $_SERVER array to get this value.

Mac