jamesxg1 Posted January 20, 2009 Share Posted January 20, 2009 How Do I Log Any Failed Logins On My Site ?, I Need It In PHP, Thanks Peepz Many Thanks James. Quote Link to comment https://forums.phpfreaks.com/topic/141647-how-to-log-any-failed-logins-on-my-site/ Share on other sites More sharing options...
trq Posted January 20, 2009 Share Posted January 20, 2009 fopen & fwrite. Quote Link to comment https://forums.phpfreaks.com/topic/141647-how-to-log-any-failed-logins-on-my-site/#findComment-741494 Share on other sites More sharing options...
Maq Posted January 20, 2009 Share Posted January 20, 2009 fopen & fwrite. Where is your page for unsuccessful logins? Put the code there. You have all the information you need, you just have to write it to a log file. Could you attempt it and come back with some code for us to work with? Quote Link to comment https://forums.phpfreaks.com/topic/141647-how-to-log-any-failed-logins-on-my-site/#findComment-741498 Share on other sites More sharing options...
PFMaBiSmAd Posted January 20, 2009 Share Posted January 20, 2009 Or error_log (use a 2nd parameter = 3 to append to your own named log file) I personally log everything available about each form submission - who (ip, browser info, user id(loggin), referrer, post/get/cookie values), what (form submission), when, where (file name and line number in the code), and result (success, errors...) Quote Link to comment https://forums.phpfreaks.com/topic/141647-how-to-log-any-failed-logins-on-my-site/#findComment-741501 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.