title: PHP - include file with POST data
body: <p>I have a PHP file which takes POST data. I run this file currently through AJAX in jQuery:</p>
  
  <pre><code>$.post("myfile.php", { key: value });
  </code></pre>
  
  <p>I want to run this same file but within another PHP script. This is what I want to achieve:</p>
  
  <pre><code>&lt;?php
  
  include("myfile.php", array("key" =&gt; "value") );
  
  ?&gt;
  </code></pre>
  
  <p>I know that the <code>include</code> function doesn't take other parameters, so is there a way to include another PHP file with POST variables?</p>