title: PHP - Fetch multiple URLs by chunks
body: <p>My web application needs to parse remote resources from multiple remote servers. The problem is that the output of those remote servers is long / staged. I hence need a piece of code implementing the following logic: </p>
  
  <ul>
  <li>Populate array <code>$links_array</code> with a set of links. </li>
  <li>Some code here.... </li>
  <li>For  <code>$i</code> in <code>count($links_array)</code><br>
  `$results_array[$i] = {what has been output until now <strong>without</strong> waiting for full response}  </li>
  <li>Some code here.... </li>
  </ul>
  
  <p>The answer must not use extensions (except cURL) and work on PHP 5.3.  </p>
  
  <p>Thanks a lot for your help.</p>