Good day to all. I am trying to get the country through VC API.

$params = http_build_query($options); $url = 'https://api.vk.com/method/'.$method.'?'.$params.'&access_token='.$token; $response = file_get_contents($url); return $response; 

But, gives an error enter image description here Google has issued that it is necessary to uncomment the line "extension = php_openssl.dll" in php.ini
But, it is already open there.
What could be the problem?
Previously, the script worked, just restarted XAMPP.
Thank you in advance for your response.

  • maybe just too many requests have been made and you have been a little "nailed"? wait an hour or two and try again - KoVadim
  • that's just the point, just now turned on and sat down to work, and here is such garbage: C Well, thank you for the answer, maybe that's the problem: C - tweeker
  • @tweeker And guessing to use the hosting, VPS - you did not have enough mind? So, the hypothetical problem with the ban will be solved, and you may not have to configure anything - the hosting has already been configured. - Rou1997
  • in any case, the most correct thing in this case is to run wireshark (or tcpdump if it is a server) and then watch. There will be clearer. The server can explicitly report limits exceeded or an empty parameter. and file_get_contents about a lot of interesting things just silent. - KoVadim
  • @KoVadim It is difficult even for a specialist to work with Wireshark, especially with SSL, and here a beginner who has never seen normal requests there has nothing to compare with, and what is there to understand? I think that in this case nothing will be sent over the network, since the request is not sent any further than PHP for the above reason. - Rou1997

0