16 Jan 2003 Waldo   » (Journeyer)

Web Applications: Non-Triggered Events?
Can anybody recommend the best method of causing a non-triggered event to occur on a regular basis within or for a web-based application? I would like to send out an e-mail regularly (say, daily) to individuals based on data stored in a MySQL database. All existing interaction with this database is accomplished via PHP. I figure that I have two choices:

a. Use a cron job. b. Have a frequently-called function check the current date and time. If it is within certain parameters, call the function that will cause the e-mail to go out.

I don't like the former, because it will make it harder for people to install this application. The latter is wasteful. Am I missing a third possibility?

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!