OK I want to send a PHP variable to another server, this is my code, the php variable is an ip address.
header("Location: http://www.domainname.com/bean/data.php?ip=$ip");
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.
code on data.php page
$ip =$_GET['ip'];
include("ipology.class.php");
$ipology = new ipology( array($ip) );
$out = $ipology->out();
foreach( $out as $ip ) {
if( is_array( $ip ) ) {
$address = implode( ", ", (array) $ip['address'] );
$descr = implode( ", ", (array) $ip['descr'] );
echo "$descr";
}
}
header()for thisheader().