hi! i had created a cms in php, now i want to have a log file w/c is saved in mysql. how to i start creating a log file? basically what is does is saved the activities of the user and gather the information such as browser, ip, username, and login time and out. hope to hear from you guys!
Hi, looks like all you need to do is create a table in your database with fields for User Agent data, the username from the session etc and have a simple function that adds this data to your table when you need it - on login / logout etc. The PHP docs on mysql functions are a good place to start looking [uk2.php.net...]