I think this should be pretty easy, but I haven't been able to find much information that coul dhelp me on this.
I want to create a text file that records when users login to my site. I use PHP's sessions, so when I call:
session_register("username");
session_register("password");
I want to record the username, current date/time (GMT - 6hours), and their IP address to a file in the same directory called "log.txt".
I think I use fopen() and just write variables to the file... am I on the right track? What would be the easiest way? Thanks in advance for all help.