fork download
  1. <?php
  2. $steamkey = "REMOVED";
  3. $id_banuser = '76561198059606697';
  4.  
  5. $apifr = "http://a...content-available-to-author-only...d.com/ISteamUser/GetPlayerSummaries/v0002/?key=".$steamkey."&steamids=".$id_banuser."&avatar";
  6.  
  7. $ch = curl_init();
  8.  
  9. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  10.  
  11. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  12.  
  13. curl_setopt($ch, CURLOPT_URL,$apifr);
  14.  
  15. $result=curl_exec($ch);
  16.  
  17. $result = json_decode($result);
  18. $result = $result->response->players;
  19.  
  20. var_dump($result);
  21.  
  22. echo $result->avatarfull;
  23.  
  24. foreach($result as $r){
  25. echo $r->avatarfull;
  26. }
Success #stdin #stdout #stderr 0s 55640KB
stdin
Standard input is empty
stdout
NULL
stderr
PHP Notice:  Trying to get property of non-object in /home/7pbMQL/prog.php on line 18
PHP Notice:  Trying to get property of non-object in /home/7pbMQL/prog.php on line 18
PHP Notice:  Trying to get property of non-object in /home/7pbMQL/prog.php on line 22
PHP Warning:  Invalid argument supplied for foreach() in /home/7pbMQL/prog.php on line 24