V
V
vasiliygilbert2017-04-22 20:39:39
PHP
vasiliygilbert, 2017-04-22 20:39:39

After MULTIPLE transition between tabs does not display information in php?

Hello!
I'm new to php, when I'm logged into the site, I click on the "my profile" tab. My information is described there, but after 6-7 very fast: D transitions through different tabs, I go back to the "my profile" tab and they give me an error like:

Warning: file_get_contents( steamcommunity.com/id/bennysgaming//inventory/json...
[function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 429 Unknown in V:\home\x .ru\www\myprofile.php on line 22

But after a while, for some reason, the code starts to work correctly again
. The code itself:
>$a = $steamprofile['profileurl'];
>$get_content = file_get_contents("$a/inventory/json/730/2");
As I understand it, there is a problem due to an additional slash after the profileurl, how can I rephrase this code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2017-04-22
@Rsa97

HTTP 429 Too Many Requests
Too many requests in the specified time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question