|
Posted by balakrishnan.dinesh on 01/16/07 09:09
hi Kimmo,
Thanks for ur solution, But the problem with this solution is,
After 100 seconds only , the page is getting displayed ,until nothing
is displayed ..
what I need is, while the counter is running in "sleep(100)" ,
other process should be performed concurrently
Is there any way for that
Thank
Dinesh...
Kimmo Laine wrote:
> <balakrishnan.dinesh@gmail.com> wrote in message
> news:1168931303.071685.241050@38g2000cwa.googlegroups.com...
> >
> > Hi,
> >
> > My exact problem is, i want to call a function for every 100
> > seconds in PHP code
>
>
> either make a cronjob to call it every nth second or make an infinitely
> running daemon:
> <?php
>
> while(1){
>
> // Do the magik
>
> // Wait 100 seconds
> sleep(100);
> }
>
> ?>
>
> a cronjob might be easier for the server to handle
>
> --
> "Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
> http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
> spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)
[Back to original message]
|