为什么此API请求适用于我的本地,但没有生产?

时间:2013-06-13 04:08:45

标签: php dreamhost eventbrite

$result = file_get_contents('https://www.eventbrite.com/json/event_search?app_key=[MY_API_KEY]'); echo $result;

这会在我的本地环境中记录正确的内容,但不会在生产中记录,它会返回完全空白。我也试过ssh'ing到我的生产服务器并运行

curl https://www.eventbrite.com/json/event_search?app_key=[MY_API_KEY]

这也很好。这是怎么回事?我的托管服务提供商(Dreamhost)可能会以某种方式阻止我吗?

0 个答案:

没有答案
相关问题