title: PHP script timeout when I use sleep()
body: <p>I have problem with php script timeout when I use sleep()</p>
  
  <p>this code:</p>
  
  <pre><code>&lt;?php      
  ob_start();
  header('Content-Type: text/html; charset=utf-8');
  echo 'Begin ...&lt;br /&gt;';
  flush();
  ob_flush();
  for ($i = 0; $i &lt; 10; $i++) {
      echo $i . '&lt;br /&gt;';
      flush();
      ob_flush();
      sleep(65);
  }
  echo 'End ...&lt;br /&gt;';
  flush();
  ob_flush();
  ?&gt;
  </code></pre>
  
  <p>When I execute this code and wait 60 seconds script has stop working.</p>
  
  <p>This server config</p>
  
  <p>php.ini</p>
  
  <pre><code>max_execution_time 3600;
  </code></pre>
  
  <p>nginx.conf</p>
  
  <pre><code>keepalive_timeout 3600;
  </code></pre>
  
  <p>How do I config for solve this problem?</p>
  
  <p>Excuse me, I'm not good english.</p>