How would I define the USER'S IP address, for recording log-ins, actions etc..
I tried $REMOTE_ADDR; but it didn't seem to work
It may be that when you tested it you only tried it on your local machine - which for some reason doesn't give the loopback IP (127.0.0.1). Also you can try to access it though the $HTTP_SERVER_VARS array or $_SERVER.
if (getenv(HTTP_X_FORWARDED_FOR)){ $ip=getenv(HTTP_X_FORWARDED_FOR); } else { $ip=getenv(REMOTE_ADDR); }
The if-else thingy worked, thanx