php user log activities

Function LogUserActivity($LogFile, $Activity){ $UserIp = $_SERVER['REMOTE_ADDR']; $TimeRef = date('d-m-Y H:i T'); $Handle = fopen($LogFile, 'a'); $Data = $UserIp.'|'.$TimeRef.'|'.$Activity.'~'; fwrite($Handle, $Data); fclose($Handle); } Function ReadUserActivity($LogFile){ GLOBAL $log; $LogFile = file_get_contents($LogFile); $ExplodedLogFile…

Continue Reading
Close Menu