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.
I guess you could write a PHP script that'll run continuously and check the database every 5 minutes, but you'd be better off (and probably use less resources) if you just used Cron/Task Scheduler.
Awesome feedback guys. And quick too. No I am not opposed to using cron, just was curious if there was anything else to use. With regards to ISPs that host PHP clients, what is the common practice to allow users to run cron scripts?
BTW. I didn't get what Stuart said about replying to an existing thread, did something screw up when I sent to the list?
Thanks for the help. -- <---------------------------------------------------------------> Alex Pilson FlagShip Interactive, Inc. [EMAIL PROTECTED] <--------------------------------------------------------------->
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php