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就只能運行
請給點建議謝謝。