Posted by Kimmo Laine on 01/16/07 09:35
"P Pulkkinen" <perttu.POISTATAMA.pulkkinen@POISTATAMA.elisanet.fi> wrote in
message news:be0rh.5262$KW2.3297@reader1.news.saunalahti.fi...
>> 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
>
> I would like to know more about this, because this daemon solution is
> really easy to do but is there some dangers with it:
> - max_execution_time in php.ini
set_time_limit(0); should solve that, not sure thou.
> - is it causing stress to server.
I don't know, haven't run any performance tests. Yet for some reason I'd
rather use cron for scheduling rather than this sort of solution.
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis
spam@outolempi.net | rot13(xvzzb@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|