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]
|