[KLUG Members] Pages that take a mighty long time....
Adam Tauno Williams
members@kalamazoolinux.org
Fri, 20 Jul 2001 11:57:27 -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.
>Have you tried spitting out a little data to the web page in each
>loop?
There's and idea. Is there anything I can spit out (a null equivalent) that
won't show up? At the end I need to sort, so I can write anything until I have
all the data globbed in the appropriate columns.
Systems and Network Administrator
Morrison Industries
1825 Monroe Ave NW.
Grand Rapids, MI. 49505