This topic is locked
[SOLVED]

 IP address and local time in register.php

7/3/2006 00:54:18
PHPRunner General questions
W
wrjost author

Hello, everybody,

in order to deter abuse of registering I would like to
a) show the user's IP-address on the registration screen ("Your IP address is: xxx.xxx.xxx.xxx - and it is being logged.")
and/or
b) include IP address and local time in the registration email sent to the new user.
Can you tell me which variables I have to use?
(Or better yet: where can I find a LIST of all available variables?)
Thanx,

Wilfried

Alexey admin 7/3/2006

Wilfried,
you can get the user's IP addres using this variable:

$_SERVER["REMOTE_ADDR"]


The full list of server variables can be found at:

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