Reply to Re: Max execution time for cli

Your name:

Reply:


Posted by Pro N00b on 11/26/89 11:17

Jonathan wrote:
> Pro N00b wrote:
>
>> AC wrote:
>>
>>> Do scripts written in php obey the max execution time set in php.ini by
>>> default?
>>>
>>> I know you can set timeouts inside of a particular script, but actually
>>> I want a script to run forever. Will this work or is there a way to
>>> make it work?
>>>
>>> ie;
>>>
>>> while(1) {
>>> // do stuff
>>> }
>>
>>
>>
>> Never tried, but I have heard (or actually read) somewhere that
>> setting your executiontime to zero (0) gives the script infinitive
>> runtime
>
>
> It does, but you will never receive any timeout for php scripts, as it
> specifies the timeout for every script ran through php.
>
> Jonathan

Or just run set_time_limit(0); within your script

[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

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