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

Adam Tauno Williams members@kalamazoolinux.org
Fri, 20 Jul 2001 15:40:10 -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?
>>Have you tried spitting out a little data to the web page in each loop?
>That's good advice.
>If you just need more time, tell Apache you need more time.  This is
>from
>my httpd.conf:
>#
># Timeout: The number of seconds before receives and sends time out.
>#
>Timeout 300

And the winner is...... Mr. McCarthy!  I changed that to 600 and up came the
page, so obvious I almost bent over and kicked myself.  One can extend the PHP
runtime as long as one wants,  but when httpd says its over,  the fat lady has
sung! Sweet,  now management can have their insane reports no one will ever read.

On a related note someone want to present on XML-RPC?  Looks like an "easy" way
to move the heavy lifting out of PHP,  but still keep roughly the same structure.

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