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.
我试图运行下面显示的 getenv 用户名代码,它在我的 PC 上显示正确的用户名,但是当我通过我的 ip 从同一网络上的其他 PC 访问相同的用户名时,他也得到了我的用户名。当他访问我的电脑 URL 时,应该显示他在他电脑上的用户名
谢谢
<?php echo getenv("username");
用户名期望 pf windows 登录用户在我的机器上它是正确的,但在网络上的所有机器上,如果通过我的 ip 访问,则在他们的 PC 上显示我的用户名