You are here: Re: Is there a Timer class in PHP5? « PHP Programming Language « IT news, forums, messages
Re: Is there a Timer class in PHP5?

Posted by Rik on 03/09/07 11:39

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация