skatermike21988 Posted March 21, 2006 Share Posted March 21, 2006 ok in my memebres area i want to log users i.p's.reason being if they abuse their privelages they will then get a warning diplayed first. If they continue they will be banned from my site.How would i have it log peoples i.p? Quote Link to comment https://forums.phpfreaks.com/topic/5402-logging-users-ip/ Share on other sites More sharing options...
Humpty Posted March 21, 2006 Share Posted March 21, 2006 I'm assuming if you need to log IP's then you are already familiar with PHP and SQL and databases, (adding and retrieving)...and that all that you require is a way to get thier IP. $UsIP=$_SERVER['REMOTE_ADDR'];Just insert $UsIP, (or whatever variable you name it), into the appropriate table / field.hope that helped Quote Link to comment https://forums.phpfreaks.com/topic/5402-logging-users-ip/#findComment-19253 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.