Is there any timer component in php?

by 3 replies
4
Is there any timer component in php? I want to repeat some task at particular interval how can i do that?

Please help me
#programming #component #php #timer
  • You can use "cron jobs" to run PHP scripts at particular intervals (there is no similar component built into PHP).

    Here is a tutorial:
    http://www.binarytides.com/blog/run-...use-cron-jobs/

    Most web hosting control panels (like cPanel) make it easy to create cron jobs.
    • [1] reply
    • PHP sleep() function if your interval is a matter of milliseconds, or seconds, if you're talking hours or days then yes, Chris Landrum's suggestion is best.
      • [1] reply

Next Topics on Trending Feed