title: Running concurrent PHP scripts
body: <p>I'm having the following problem with my VPS server.</p>
  
  <p>I have a long-running PHP script that sends big files to the browser. It does something like this:</p>
  
  <pre><code>&lt;?php
  header("Content-type: application/octet-stream");
  readfile("really-big-file.zip");
  exit();
  ?&gt;
  </code></pre>
  
  <p>This basically reads the file from the server's file system and sends it to the browser. I can't just use direct links(and let Apache serve the file) because there is business logic in the application that needs to be applied.</p>
  
  <p>The problem is that while such download is running, the site doesn't respond to other requests. </p>