Posted by Kimmo Laine on 01/16/07 07:19
<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]
|