homepage Welcome to WebmasterWorld Guest from 54.211.201.65
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
php log file using mysql
log file using mysql with cms integration
sanji41




msg:4207318
 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!

 

morehawes




msg:4207390
 9:15 am on Sep 27, 2010 (gmt 0)

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...]

sanji41




msg:4207781
 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved