I want to get details of user when he registers with my website for security reasons. I need ip and date and time I guess. Is there anything else I need to cache while registering? How to get ip,time and date? And time will be in which timezone? I want it in GMT +5:30 means asia - culcutta. Thanks in advance.
And i want to save user log in time. Any help about this will be thankful.
The $_SERVER superglobals provide a load of useful information.
$ip = $_SERVER['REMOTE_ADDR']; // The IP address from which the user is viewing the current page.
$time = $_SERVER['REQUEST_TIME']; // The timestamp of the start of the request.
$port = $_SERVER['REMOTE_PORT']; // The port being used on the user's machine to communicate with the web server.
$browser = $_SERVER['HTTP_USER_AGENT']; // Contents of the User-Agent (Web browser): header from the current request
Thank you all. It done my work. But I have a last question. What would be better format to store user's login time? Like 1296143233 or Thursday 27 January 2011 3:47pm? Thank you. And how to convert 1296143233 to Thursday 27 January 2011 3:47pm. I think first format will save the disk space. Please help.
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: