Send variable to another server and get result with PHP
<p>OK I want to send a PHP variable to another server, this is my code, the php variable is an ip address.</p>

<pre><code> header("Location: http://www.domainname.com/bean/data.php?ip=$ip");
</code></pre>

<p>Basically the other server will get the ip address and return a variable called Description what i am unclear on is the best way to return the description variable back to the server.</p>

<p>code on data.php page  </p>

<pre><code> $ip =$_GET['ip'];

    include("ipology.class.php");
 $ipology = new ipology( array($ip) );
 $out = $ipology-&gt;out();
 foreach( $out as $ip ) {
if( is_array( $ip ) ) {
 $address = implode( ", ", (array) 
                $ip['address'] );
                $descr   = implode( ", ", (array) $ip['descr'] );
                           echo "$descr";
 } }
</code></pre>
