问题描述
|
我一定要瞎了。
这是我要处理的API URL。
http://upcoming.yahooapis.com/services/rest/?method=event.search&api_key=MY_API_KEY&location=sydney+australia
所以当我跑步
$response = simplexml_load_file(\"http://upcoming.yahooapis.com/services/rest/?method=event.search&api_key=MY_API_KEY&location=sydney+australia\");
那么结果很好。
但是我需要以编程方式设置URL,所以我要做类似的事情。
$url = \"http://upcoming.yahooapis.com/services/rest/?method=event.search&api_key=MY_API_KEY&location=sydney+australia\";
$response = simplexml_load_file($url);
然后结果是不同的!这让我疯狂。有任何想法吗? (当然,我将API密钥更改为MY_API_KEY)。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)