Php 卷曲-转移形式很好,但是可以';无法从其他服务器获取变量

Php 卷曲-转移形式很好,但是可以';无法从其他服务器获取变量,php,curl,cross-server,Php,Curl,Cross Server,标题可能有点误导,但我不确定如何用另一种方式来表述它 我使用以下脚本跨服务器发送变量: <?php if($_POST) { $ch = curl_init("http://jecom.nl/bank/mods/jecom/jecom.php"); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS,

标题可能有点误导,但我不确定如何用另一种方式来表述它

我使用以下脚本跨服务器发送变量:

<?php

     if($_POST) {
        $ch = curl_init("http://jecom.nl/bank/mods/jecom/jecom.php");
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, 
                    array('description' => $_POST['description'], 'amount' => $_POST['amount'], 'receiver'=> $_POST['receiver']));
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); 
        // set to false if you want to see what redirect header was sent       
        // snippet 1
        //execute post
        $result = curl_exec($ch);

        //close connection
        curl_close($ch);
    }                           
?>

我正在从表单中获取值(如预期的那样),但不是
$sender
$balance
,而且当我按submit时,它不会将值发送到正确的页面,而是希望在表单服务器上找到
jecom\u find.php
。现在这并不让我感到惊讶,我想到了以下位置,但目前这不起作用(
openbase\u dir
safe\u mode
仍然是其中之一)。是否可以绕过此问题?

如果跨服务器,$\u会话变量不会在第二台服务器上设置。所以它总是空的,所以,你永远不会得到余额作为你的呼叫

$balance = get_funds( NULL , $server);

我们怎么知道get_基金不使用json数据?可能是。但是如果没有设置他的变量,这其实并不重要。
$balance = get_funds( NULL , $server);