Importing PHP class from remote directory and using it
<p>so what I have is a simple script, set up on two different hosting accounts on the same server,</p>

<p>So Account #1 has a file index.php</p>

<pre><code>&lt;?
function get() {
    return file_get_contents("http://cmyip.com");
}

?&gt;
</code></pre>

<p>Account #2 has another file</p>

<pre><code>&lt;?
require_once('../../seaview/public_html/index.php');
echo get();
?&gt;
</code></pre>

<p>now what it would do, is execute it on account #1 and then bring back results, how do I import the function(it will be a class later on) and execute it on account #2, only reason I don't want to just copy paste the files into the second account is because there is going to be a lot of accounts, and managing them would be a pain, also note that the accounts do have different IPs, thats how I know that it's executing on account #1</p>

<p>Please help!</p>
