Script Garage

 

How do I run PHP scripts at a particular time? (see inside for details)?

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.

Public Comments

  1. You are looking for functionality under the control of "cron."
  2. 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.
Powered by Yahoo! Answers