You are here: Re: working as a daemon and execute tasks at a certain time « All PHP « IT news, forums, messages
Re: working as a daemon and execute tasks at a certain time

Posted by Dirk Laurenz on 10/10/07 11:29

Hi,

BoneIdol schrieb:
> You could always make it run the task every 86400 seconds...

this was my guess, but depends on starting the daemon at 1800 hours,
isn't it.

> Anyway your code executes twice because you use 2 equal than or
> greater/less than. Remove an = from that if and it should work ok.
>
> I think anyway.
>
that does not change anything case the function can execute more than
once per second and a sleep 1 can lead to miss the time. i already
tested this.

dirk

 

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

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