Reply to Re: Is there any function in PHP like setTimeout with same functionallity in javascript

Your name:

Reply:


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)

[Back to original 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация