title: How to pass url link to the video streaming php file
body: <p>Instead of providing path of video file to source attribute of video tag, I am using a PHP Script. </p>
  
  <p>There are two php scripts. 1. index.php 2. videoflow.php</p>
  
  <p>In index.php:</p>
  
  <pre><code>&lt;video src="videoflow.php" controls&gt;&lt;/video&gt;
  </code></pre>
  
  <p>In videoflow.php</p>
  
  <pre><code>header("Content-Type: video/mp4");
  header("Accept-Ranges: bytes");
  $videoFile=file_open("videos/1.mp4","rb");
  while(!feof($videoFile)){
      $data=fread($videoFile,104500);
      echo $data;
      flush();
  }
  fclose($videoFile);
  exit;
  </code></pre>
  
  <p><strong>What I want is, to pass video url from index.php to videoflow.php.</strong>
  I have tried to use, session. But problem with session is, I need to refresh the page twice.</p>
  
  <p>So please guide me, how can I pass a video url from the index.php to videoflow.php ?? </p>