Alright having trouble getting a code to write a ip to a log.dat file.
I got log_file declared already and I got it where it writes the user name and the name and the time to the dat file. i just can't seem to figure out how to write also the ip in there and have it display on the admin part. I am very new with php and I appreciate all the help I get from phpbuilder.com.
$fd = @fopen($log_file, "a");
fputs($fd, time()."|$name|$username\n");
Thanks,
SenateDC
www.SenateDC.com