[KLUG Members] Pages that take a mighty long time....

Adam Tauno Williams members@kalamazoolinux.org
Fri, 20 Jul 2001 11:32:50 -0400 (EDT)


>>I've written some pages in PHP that plow through a enourmous pile of
>>data,  and may take "a long time" to run.  Browser comes back with a "Zero
>>Sized Reply" or some such nonsense,  I assume it is a time-out etc...  does 
>>anyonehave any clever ideas on how one would go about handling a situation 
>>such as this?  Or maybe I need to off down a diffrent track...
>Maybe the problem is in /etc/php.ini?  i.e.:
>max_execution_time = 30     ; Maximum execution time of each script, in
>seconds

I use the set_time_limit in each loop,  so the counter for expiring time should
keep getting reset,  and I'm still protected from an internal loop going crazy.
 I've tried BIG values and it doesn't seem to effect it,  but I'll nose about
some more.

Systems and Network Administrator
Morrison Industries
1825 Monroe Ave NW.
Grand Rapids, MI. 49505