im try to send variable from a php page to anotherone in diffrent server,but it doesnt work.here is my code.witch part of this i did wrong?
$Phone='09757527255';
$Random='123456';
$data=array("phone"=>$Phone,"random"=>$Random);
$string=http_build_query($data);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://xxxxxxx.com/xxxxx.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$string);
// Receive server response ...
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec($ch);
curl_close ($ch);