Welcome to WebmasterWorld Guest from 23.22.46.195

Forum Moderators: coopster & jatar k

php log file using mysql

log file using mysql with cms integration

   
4:45 am on Sep 27, 2010 (gmt 0)



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!
9:15 am on Sep 27, 2010 (gmt 0)

5+ Year Member



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...]
11:36 pm on Sep 27, 2010 (gmt 0)



thanks for the quick reply, so i need all those session to store onto my DB? can you give me some samples on that? im still learning.. and thanks again.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month