Reputation:
I'm going to create a small reminder system in PHP over the weekend. The plan is
Whats the best way of approaching the script that checks/sends or can someone suggest another idea? Thanks.
Upvotes: 2
Views: 3567
Reputation: 2336
If you server supports cron jobs use them.
Create a cron job to run that script with a syntax like this one:
php -q /home/serverpath/script/file.php
CPanel does have a section for cronjobs
Upvotes: 0
Reputation: 29870
You would run a cronjob on your server that would run every x minutes. Each time it runs it would check the database for reminders at the current time and then e-mail the user who made the reminder.
Upvotes: 4