title: Connection keep-alive problems
body: <p>I have a PHP script "A" that starts another PHP script "B", which runs up to 5 hours. I use the curl function for that. But my problem is that script "A" does not sure hold the connection to the script "B". I have changed the max_execution_time, timeout, socket-timeout, etc... but nothing helps.</p>
  
  <p>Do I need to send a header to the script "B" with curl or something?</p>
  
  <pre><code>$curl_header[] = "Accept: text/xml,application/xml,application/xhtml+xml,text
  /html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
  $curl_header[] = "Cache-Control: max-age=0";
  $curl_header[] = "Connection: keep-alive";
  $curl_header[] = "Keep-Alive: 84600"; 
  
  $url = 'http://test.de/test_B.php';
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
  curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, $curl_header); 
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300);
  curl_setopt($ch, CURLOPT_TIMEOUT, 84600);
  curl_setopt($ch, CURLOPT_NOSIGNAL, true);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_URL, $url);
  $result = curl_exec($ch);
  $curl_errno = curl_errno($ch);
  curl_close($ch);
  </code></pre>
  
  <p>`</p>