Possible Duplicate:
PHP: running scheduled jobs (cron jobs)
I need to update a database every 20 mins lets say. (ie. add 50 to ‘X’ column, subtract 20 form ‘y’ column, preform an equation based on time on ‘z’ column, etc.) I have the necessary update in a update.php page but how would i go about calling that page every 20 minutes (short of scheduling a task on a computer)? or is there a better way to do this?
Thanks
Linux
This should be done as a cron job or alternatively using
atto schedule the job. I have written a PHP wrapper for theatcommand that you could use for this purpose: https://github.com/treffynnon/PHP-at-Job-Queue-WrapperWindows
You need to use Scheduled Tasks. Here is a link to an old article I wrote about moving Linux cronjobs to a Windows machine: http://blog.simonholywell.com/post/374209271/linux-to-windows-server-migrating-and-securing-your-cron