我正在尝试获取远程网页内容,但是我无法使用 file_get_content和cur
我尝试从localhost触发它,它工作正常,但是从 实时服务器仍然需要整整一天
//API configurations
$APIuserID = '07062454018';
$APIkey = '2x1ec5d04f8d3db8f71xc0d';
// --END---
this is the url i am trying to get the content from
$url = "https://mobileairtimeng.com/httpapi/?
userid=".$APIuserID."
&pass=".$APIkey."&network=".$network."
&phone=".$recepientPhone."&amt=".$amount."&jsn=json";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
$body=curl_close($ch);
$obj = json_decode($output,true);