By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,165 Members | 1,916 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,165 IT Pros & Developers. It's quick & easy.

Is there a Timer class in PHP5?

P: n/a

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

Mar 9 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
Mar 9 '07 #2

P: n/a
Rik
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
Mar 9 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.