boxer111 asked:
I want to run few PHP scripts at some particular time. Usually the scripts run when they are called by client browser, but what can I do to have them automatically run at a particular time say 7:00pm everyday.
Or is it the work of Apache server to do, that if we show it the script and tell it the time, it would automatically run it at that time.
I want to run few PHP scripts at some particular time. Usually the scripts run when they are called by client browser, but what can I do to have them automatically run at a particular time say 7:00pm everyday.
Or is it the work of Apache server to do, that if we show it the script and tell it the time, it would automatically run it at that time.


2 Comments to 'How do I run PHP scripts at a particular time? (see inside for details)?'
June 28, 2010
You are looking for functionality under the control of “cron.”
June 30, 2010
If you are on a linux server you should use a utility called cron, With cron you schedule when the script should be run and at what interval.
If you are hosting it yourself on a windows pc then you will need to use something like the scheduled task utility.