У меня проблемы с файлом_get_contents. Мне нужно было получить содержимое с этого URL-адреса: http://steamcommunity.com/market/priceoverview/?currency=1&appid=730&market_hash_name=P250%20|%20Valence%20(Field-Tested)
Хорошо работает, когда я открываю его с помощью моего браузера, мой скрипт php:
$item = "P250 | Valence (Field-Tested)"; $link = 'http://steamcommunity.com/market/priceoverview/?currency=1&appid=730&market_hash_name='.urlencode($item); echo file_get_contents($link);
Выдает мне эту ошибку: Warning: file_get_contents(http://steamcommunity.com/market/priceoverview/?currency=1&appid=730&market_hash_name=P250+%7C+Valence+%28Field-Tested%29): failed to open stream: HTTP request failed! HTTP/1.0 429 Unknown
Согласно сообщению об ошибке, вы получаете от Steam серверов ошибку 429
HTTP:
429 Too Many Requests (RFC 6585)
The user has sent too many requests in a given amount of time. Intended for use with rate limiting schemes.