I have couple of html pages and I would like to save on a text file when the user entered and left every page in a UNIX format with PHP.
if(isset($_POST['submit'])){
$t=time();
$myfile1 = fopen("temp/time.txt", "w");
fwrite($myfile1, $t);
header("Location: main2.html");
}
The code works to get the timestamp when the user entered but is there a way to get one when they left?
Thank you in advance!