Calling PHP functions from different domains
<p>Is it possible to call a PHP function found in a file on another website with a different domain?  </p>

<p>For example, I know that to call a PHP function from another file in the same domain (say function aaa() found in aaa.php) I just have to simply do this (with a few simplifying assumptions):</p>

<pre><code>include_once('aaa.php');
aaa();
</code></pre>

<p>I have tried doing something similar, such as:</p>

<pre><code>include_once('http://othersite/aaa.php');
aaa();
</code></pre>

<p>I cannot get this to work (the page seems to load fine, with no error messages, but the function does not execute).  I have tried require(), which gives me a blank screen.  I have had no success with fopen either.</p>

<p>If it is possible to do this, how can I do it?</p>
