PHP script being interrupted at random time
<p>I have a php script that does a lot of stuff, produces a lot of output and can take a few minutes to complete.</p>

<p>I have already placed a set_time_limit(999999) at the beginning.</p>

<p>Before that, it obviously exceeded the time limit of 30 seconds and got interrupted. When that happened, a fatal error was logged indicating just that.</p>

<p>Now, from the browser I call that script, I observe as the browser receive the output from the script almost in real time, but at a random point, the script just is interrupted. It does <em>not</em> exceed the time limit (obviously), and NO ERROR at all is logged. Actually, if I try it a second time it gets interrupted at a different point.</p>

<p>The question is, if no error is encountered, and the time limit is not reached, what else can cause the script to be interrupted? Perhaps a disconnection from the client (browser) due to timeout? (not timeout waiting for data, though, as data is constantly being output). Perhaps the browser may have a maximum size for an html page? </p>

<p>But if it's one of these two cases, how comes this is not logged as an error?</p>
