title: PHP check if file was download completely
body: <p>Is there a way to detect when user download the whole file? I'm using this script for downloading ZIP file:</p>
  
  <pre><code>header($_SERVER['SERVER_PROTOCOL'] . ' 200 OK');
  header("Content-Type: application/zip");
  header("Content-Transfer-Encoding: Binary");
  header("Content-Length: " . filesize($filePath));
  header("Content-Disposition: attachment; filename=\"" .$fileName . "\"");
  </code></pre>
  
  <p>I read some advice but no one works. Please if you have WORKING and TESTED solution I'll be glad.</p>
  
  <p>Thanks</p>