When you try to work with this api via vpn, it says:
lookup https on 127.0.0.11:53: no such host
When you insert a string with a method in the browser, everything works fine. The code itself:
$token = ''; $url = file_get_contents('https://api.vk.com/method/friends.getOnline?user_id=315544845&online_mobile=0&v=5.71&access_token='.$token ); $result = json_decode($url, true); $out = $result['response']; $out = implode(',', $out); var_dump($out);
Do not tell me the solutions?