title: Unexpected Connection Reset: A PHP or an Apache issue?
body: <p>I have a PHP script that keeps stopping at the same place every time and my browser reports:</p>
  
  <blockquote>
    <p>The connection to the server was reset
    while the page was loading.</p>
  </blockquote>
  
  <p>I have tested this on Firefox and IE, same thing happens. So, I am guessing this is an Apache/PHP config problem. Here are few things I have set.</p>
  
  <p>PHP.ini</p>
  
  <pre><code>max_execution_time = 300000 
  max_input_time = 300000
  memory_limit = 256M 
  </code></pre>
  
  <p>Apache (httpd.conf)</p>
  
  <pre><code>Timeout 300000
  KeepAlive On
  MaxKeepAliveRequests 100
  KeepAliveTimeout 0
  </code></pre>
  
  <p>Are the above correct? What can be causing this and what can I set?</p>
  
  <blockquote>
    <p>I am running PHP (5.2.12.12) as a
    module on Apache (2.2) on a Windows
    Server 2003.</p>
  </blockquote>
  
  <p>It is very likely this is an Apache or PHP issue as all browsers do the same thing. I think the script runs for <strong>exactly</strong> 10 mins (600 seconds).</p>