title: Make multiple files to force-download
body: <p>Sorry if the title doesn't explain much. Let me try to explain further.</p>
  
  <p>I have code that looks like this:</p>
  
  <pre><code>&lt;?
  //Grab the number in count.txt
  $count = intval(file_get_contents('count.txt'));
  //Move the number up one
  file_put_contents('count.txt', ++$count);
  $number = file_get_contents('count.txt');
  //Force Download
  header('Content-Disposition: attachment; filename=DataFiles'.$number.".csv");
  header('Content-Type: application/octet-stream');
  
  //The data
  
  foreach($array as $info){
  echo $info."\n";
  }
  ?&gt;
  </code></pre>
  
  <p>With $array being an array of data. </p>
  
  <p>Now sometimes the amount of data can be more than 5000, so if the data is over 5000, make another file for every 5000 data that is being echoed. Ea: If there is 20,000 pieces of data  in the $array, then it will make a total of 4 files.</p>