I'm getting the following error when I try to run my PHP script:
failed to open stream: No such file or directory in C:\wamp\www\LOF\Data.php on line 3 script:
My code is as follows:
<?php
$json = json_decode(file_get_contents('prod.api.pvp.net/api/lol/euw/v1.1/game/by-summoner/20986461/recent?api_key=*key*'));
print_r($json);
?>
Note: *key*
is a replacement for a string in the URL (my API key) and has been hidden for privacy reasons.
I removed the https://
from the URL to get one error to disappear.
Am I doing something wrong here? Maybe the URL?