Is there a Timer class in PHP5?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BG Mahesh

    Is there a Timer class in PHP5?


    hi


    Java has a Timer class (include some URL) which allows us to kick off
    a process/task at specified time. How can I achieve the same in PHP5?


    -- Mahesh

  • =?ISO-8859-15?Q?Iv=E1n_S=E1nchez_Ortega?=

    #2
    Re: Is there a Timer class in PHP5?

    BG Mahesh wrote:
    Java has a Timer class (include some URL) which allows us to kick off
    a process/task at specified time. How can I achieve the same in PHP5?
    php.net/sleep

    --
    ----------------------------------
    Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

    Un ordenador no es un televisor ni un microondas, es una herramienta
    compleja.

    Comment

    • Rik

      #3
      Re: Is there a Timer class in PHP5?

      Iván Sánchez Ortega <ivansanchez-alg@rroba-escomposlinux.-.punto.-.org>
      wrote:
      BG Mahesh wrote:
      >
      >Java has a Timer class (include some URL) which allows us to kick off
      >a process/task at specified time. How can I achieve the same in PHP5?
      >
      php.net/sleep
      >
      Not quite.

      It's actually a bit harder to start a task while still processing the own
      task. It could be done using pcntl_fork() and a sleep() for 'short' times,
      otherwise I'd choose Cron
      --
      Rik Wasmus
      Posted on Usenet, not any forum you might see this in.
      Ask Smart Questions: http://tinyurl.com/anel

      Comment

      Working...