我尝试运行PHP脚本时收到以下错误:
无法打开流:第3行脚本中的C:\ wamp\www\LOF\Data.php中没有此类文件或目录:
我的代码如下:
<?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);
?>
Run Code Online (Sandbox Code Playgroud)
注意:*key*是URL(我的API密钥)中字符串的替换,并且出于隐私原因而被隐藏.
我https://从URL中删除了一个错误消失.
我在这里做错了吗?也许是URL?