[英]Getting 500 internal server error on Foursquare app
我在Foursquare應用上收到“ 500 internal server error
”。 在服務器端,錯誤日志文件上存在超時錯誤:
PHP警告:file_get_contents( https://api.foursquare.com/v2/users/self?oauth_token=XXXXXXX&amp ; v = 20161129):無法打開流:連接超時
在file_get_contents中,那是怪異的“&轉換為&”
順便說一句,本地沒有問題。 有什么問題 代碼,我的主機還是由Foursquare阻止? 謝謝。
例如,由於firewall restrictions
,您的服務器通常可能無法連接到外部資源。
嘗試使用cURL
,它比file_get_contents給您更多的選擇和控制
或可能是執行問題。 嘗試ini_set('max_execution_time', 300);
在文件獲取內容之前...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.