August 27, 201214 yr How would I make a script remind me of recurring events? If for example I insert a reminder on 30 Aug 2012 i want to be reminded every year on the 30 Aug.
August 27, 201214 yr The simplest solution is to write the reminders to a flat file (reminders.txt), one per line, then write your script (do-reminder.php) to loop through it comparing each reminder date to today. If they match, send an email with mail(). Then set do-reminder.php to run as a cron job every hour/day to suit. You can obviously get more complicated with databases and so on, but that's the simplest way I can think of. Edited August 27, 201214 yr by T-G
Create an account or sign in to comment