0
我想运行PHP中的一个GET卷曲摆脱PHP B.数据PHP - 运行GET卷曲,得到结果
这是一个PHP的例子
//next example will recieve all messages for specific conversation
$service_url = 'http://localhost/test/getFrom.php?id=1';
$curl = curl_init($service_url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$curl_response = curl_exec($curl);
if ($curl_response === false) {
$info = curl_getinfo($curl);
curl_close($curl);
die('error occured during curl exec. Additioanl info: ' . var_export($info));
}
curl_close($curl);
$decoded = json_decode($curl_response);
if (isset($decoded->response->status) && $decoded->response->status == 'ERROR') {
die('error occured: ' . $decoded->response->errormessage);
}
echo 'response ok!';
var_export($decoded->response);
(我从这里
http://support.qualityunit.com/061754-How-to-make-REST-calls-in-PHP了)
我试过了这个例子,以及(Trying to use curl to do a GET, value being sent is allows null)
在PHP B. 将获得ID,运行一些脚本,将生成一个数组。
我想从B本阵列A.当一个请求从B.
GET问题是,我怎么没有阵列可的B传递给
B就只能运行
请给点建议谢谢。