Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个脚本,当您在浏览器中打开它时,它会将您登录到 zencart。
现在,当我尝试使用 require、header 或 curl 从另一个 php 脚本中调用它时,它不会登录到 zencart。它仅在用户直接在浏览器中打开 php 脚本时才有效。
我也尝试了 virtual(),但它运行的是站点顶层的 index.php 脚本,而不是我指定的文件。谢谢。
我通过从数据库中读取会话来完成这项工作。如果有人感兴趣,请告诉我,我会打开一个 github。谢谢!