php - 如何修复“在 https://steamcommunity.com/openid 找不到 OpenID 服务器”
问题描述
我正在尝试将 Steam 登录添加到我的网站但收到此错误
在https://steamcommunity.com/openid找不到 OpenID 服务器
这是我正在使用的代码。
require 'steamauth/steamauth.php';
if(!isset($_SESSION['steamid'])) {
loginbutton(); //login button
} else {
include ('steamauth/userInfo.php'); //To access the $steamprofile array
//Protected content
logoutbutton(); //Logout Button
}
其他四个文件位于“steamauth”下的https://github.com/SmItH197/SteamAuthentication
解决方案
如果文件在同一个文件夹中,您不必调用该文件夹
从您的包含中删除steamauth
推荐阅读
- shell - 对重复字符串末尾的值求和(特殊格式)[UNIX]
- c++ - QT 库 QObject::connect: 无法连接 (null)::finished() 到 MainWindow::updateGUI() 错误
- jenkins - 你如何使用jenkins ec2插件在aws上启动windows代理/从属
- azure - 仅限制 azure 应用程序以通过自定义域名获取访问权限
- python - 如何在 Python 中对 2 个不同的数据集使用分类器随机森林?
- php - 当我在输入中输入用户名名称 DOB 或电子邮件时,如何搜索相关行?
- php - PHP进程数组转换成var-key
- c - 将接收静态二维数组的函数转换为接收指针的函数
- c# - dotnet core program.cs 行为不同 - 无法创建“AppDbContext”类型的对象
- r - 在 R 中重命名和合并行