In my current project, I have a table full of drivers' information with a column containing the expiration dates of their drivers' licenses.
I want to send an alert email when their license expires in the next 20 days. I want this check to happen on a daily basis.
If I bind this to an action such as a user's login, I'm afraid it may be missed in certain cases (like a weekend when no one logs in) etc.
Is there a way to do this check routinely without any user intervention? I'm using CodeIgniter as my PHP framework. My project's running on a shared hosting account with PHP 5.3 and MySql 5.