Automatic last update

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
KSquared
Forum Commoner
Posts: 25
Joined: Tue Aug 29, 2006 4:07 pm

Automatic last update

Post by KSquared »

Hi All,

Im looking for suggestions on how I might accomplish the following:

I need a way to check to see when the last time a member has updated his/her info for a directory based site.

Basically, if a member signs up and enters their info, then goes out of business 8 months later, and does not "cancel" their free listing, then the listing is obsolete. I need a way to check to see if the member has updated their profile say every 6 months. If not, an email would be sent to the member, if no reply say within 2 weeks, their listing info would be deleted from the database.
This would be to prevent an obsolete entries. Im not quite sure how to automate such a process.

I was thinking that on login I would store the date and then check against that date the next time the member logs in, however, if they dont ever login again then that method would not work.
This is where Im stuck!

I hope that makes sense... any suggestions?

Thanks
Keith
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Your going to need to provide more information. Is all the information stored on your servers? As in, do you control the pages that update the listing or is it hosted elsewhere.
KSquared
Forum Commoner
Posts: 25
Joined: Tue Aug 29, 2006 4:07 pm

Post by KSquared »

We have a shared hosting account on Media Temple, but yes I will be developing the entire site and will control the pages.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post by califdon »

I was thinking that on login I would store the date and then check against that date the next time the member logs in, however, if they dont ever login again then that method would not work.
Why do you think that wouldn't work? Just run a cron job every week to look for all records that have 'last login' dates over 6 months old.
Post Reply