title: Playing OGG File Outside of HTTDOCS
body: <p>I am trying to play an OGG file with the HTML5 video tag; the file is located outside of httdocs since you have to pay to view it.</p>
  
  <p>The web page that plays that file is in this directory:
  /home/admin/public_html/video/</p>
  
  <p>Inside this folder I created a php file (srv.php):</p>
  
  <pre><code>header("Content-type: application/ogg");
  readfile("/home/admin/videos/".$_GET['src']);
  exit();
  </code></pre>
  
  <p>Then to play the file I would use:</p>
  
  <pre><code>&lt;video width="400" height="400" controls&gt;
  &lt;source src="srv.php?src=&lt;NAME&gt;"&gt;
  </code></pre>
  
  <p>This let's me keep the ogg file outside httdocs.</p>
  
  <p>The problem is I can just go to this URL: </p>
  
  <pre><code> &lt;MY SITE&gt;.com/video/srv.php?src=&lt;NAME&gt; 
  </code></pre>
  
  <p>and view the video.</p>
  
  <p>If I move srv.php outside of HTTDOCS the video does not play; get a location not found error.</p>
  
  <p>Is there any way for me move srv.php outside of HTTDOCS and still let the video be played? </p>