asmith Posted December 18, 2007 Share Posted December 18, 2007 i've written about 50 php pages , working with mysql. the thing i never notice , is to have back up or all the things happening to my site . for example if a user change his name . i would never new he has done that and what was his before name. how can i set a full LOG of any action (mysql included) , to these 50 pages ? (of course without having to do all over again) Quote Link to comment Share on other sites More sharing options...
Fixxer Posted December 18, 2007 Share Posted December 18, 2007 Im no expert, but I would guess you might want to create a page (perhaps log.php) that takes in action codes, and logs accordingly. Then you would have to go back, alter all of your pages to send the code when an event takes place, and then load the page with the script. Atleast that is where I would start. Again I stress I am no expert. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 18, 2007 Share Posted December 18, 2007 The only way to get a record of what your program logic did or changed would be if your program logic wrote information to a log file. See this link - http://www.php.net/manual/en/function.error-log.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.