Re: Schedule an Event with PHP
| From: | Stuart | Date: | Fri, 16 Jan 2004 14:47:02 +0000 |
| Subject: | Re: Schedule an Event with PHP | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174807@lists.php.net to get a copy of this message | ||
Alex Pilson wrote:
Say I want a MySQL database to have a table that holds certain events, the Event table. And in the event table, one of the records is an event that has a startdate of today, I want to check against that date, if it equals now, then do this.... Besides using CRON to hit that particular event table, is there any other method I am not thinking of that can be used with PHP? I want to check that event table every 5 minutes.Please don't reply to a message to start a new topic - it really screws up the threading built into decent mail clients. There are other methods like running a PHP script as a daemon and getting web requests to check each time but neither of those are anywhere near as reliable or efficient as cron. Why don't you want to use cron? -- Stuart