I'm creating an auction site where users can bid on items. I want to create a script that sends an email to the winner of an auction item once the datetime in the end_auction column has been reached.
I'm not sure how to go about doing this, since PHP only runs when the page is loaded and then stops. Also, I want it to send an email to the winner once the auction is over even when nobody is looking at any page.
So i guess I need some sort of functionality that will constantly check my server to see if the end_auction DateTime of an event has been met and then send them an email using the Mail function if it has.
What programming languages would I need? What approach could I use to make this happen?