Can I call another PHP script and pass $_GET variables?
<p>I currently call a PHP script from javascript and return the json data.  This works great from the client. I need to make the same call to the PHP script from inside another PHP file.  Can this be done?</p>

<p>My current jquery call looks like this:</p>

<pre><code>$.post('functions/get_testdata.php?type='+Type, function(data) {
   ....
});
</code></pre>

<p>From inside another PHP script I'd like to call: </p>

<pre><code>'functions/get_testdata.php?type='.$type
</code></pre>

<p>I could just copy the contents of get_testdata to my other PHP page but I'd like to maintain just one code block for this.  </p>

<p>Any thoughts or am I missing the obvious?</p>
