title: Video file not playing after downloading using php
body: <p>I use the script below to download a video, but the video file does not play after downloading to my pc, it's having a glitch when i try to play it, can any help me out.</p>
  <p>My code below</p>
  <pre><code>&lt;?php
  
  $name = 'APM1M10VLOUO07C9.mp4';
  
  header(&quot;Content-type: application/mp4&quot;);
  header('Content-Disposition: attachment;filename='.$name);
  header(&quot;Pragma: no-cache&quot;);
  header(&quot;Expires: 0&quot;);
  readfile($name);
  exit;
  
  
  ?&gt;
  </code></pre>