elis Posted February 2, 2007 Share Posted February 2, 2007 I'm actually looking for what this is called, I plan to do the research for it myself, but that's a bit difficult without a keyword to go on. My goal is for my login script to automatically delete a user who hasn't logged in a set number of days, only I'm not sure what a code example, name, anything would be called for the "set number of days" part. I already have a function that notes the users last login, I just need to...I'm not sure of the word I'm looking for, 'compare' it to the above. I'm thinking (note this was written on a whim, so obviously there's no actual functunality) if(!$login<30[d]) I'm sorry if this isn't explained well. Link to comment https://forums.phpfreaks.com/topic/36823-no-sign-in-for-days/ Share on other sites More sharing options...
Orio Posted February 2, 2007 Share Posted February 2, 2007 You should look into timestamps (unix time). It's very easy to manage, using the time(), strtotime() and simple maths. Read a bit about it. Orio. Link to comment https://forums.phpfreaks.com/topic/36823-no-sign-in-for-days/#findComment-175676 Share on other sites More sharing options...
elis Posted February 2, 2007 Author Share Posted February 2, 2007 Ah, thank you. I will look into that. Link to comment https://forums.phpfreaks.com/topic/36823-no-sign-in-for-days/#findComment-175682 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.