title: Pass value to an include file in php
body: <p>How do you pass a parameter into an include file? I tried the following but it doesn't work.</p>
  
  <p>include "myfile.php?var=123";</p>
  
  <p>and in myfile.php, I try to retrieve the parameter using $_GET["var"].</p>
  
  <p><code>include "myfile.php?var=123";</code> will not work. PHP searches for a file with this exact name and does not parse the parameter</p>
  
  <p>for that I also did this:</p>
  
  <p><code>include "http://MyGreatSite.com/myfile.php?var=123";</code>but it does not also work.</p>
  
  <p>Any hints? Thanks.</p>