title: Php readfile('/home/myhome/video.mp4')
body: <p>hello I've been working on this script for two weeks and I can't figure out how to do it.<br>
  I am working in PHP and I want to download videos, the problem in that the "readfile" function doesn't work with files out of /var/www, that is a problem because I have many videos and not enough space in the / partition. Here is my script thanks.</p>
  
  <pre><code>$fichero = "/home/myhome/Video/$video";
  
  if (file_exists($fichero)) {
          header('Content-Description: File Transfer');
          header('Content-Type: application/octet-stream');
          header('Content-Disposition: attachment; filename='.basename($fichero));
          header('Content-Transfer-Encoding: binary');
          header('Expires: 0');
          header('Cache-Control: must-revalidate');
          header('Pragma: public');
          header('Content-Length: ' . filesize($fichero));
          ob_clean();
          flush();
          readfile($fichero);
          exit;
  }else{
      die("The File $fichero does not exist");
  }   
  </code></pre>
  
  <p>I double checked the address and I increased the maximum size of download, so please if you have any solutions, that would be great.</p>