下面是下面的url,使用file_get_contents和curl两种方法都尝试过.不适用于php脚本,但在postman中工作很好。你知道为什么吗?*来自weather.forecast where in (从geo.places WHERE text=中选择woeid“(28.56,77.32)”)和u='c'&format=json
$ch = curl_init();
curl_setop
我试过下面的代码,因为我们的PHP版本比5.4.16老一点,所以这个代码不适用于那个版本,还有新的CurlFile($_FILES"upfile",$_FILES"upfile",$_FILES"upfile"),不适用于php 5.4.16。('//third party url');
curl_setopt(