Home > Backend Development > PHP Tutorial > PHP怎么获取当前windows系统的登录用户名

PHP怎么获取当前windows系统的登录用户名

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:04:30
Original
1833 people have browsed it

PHP如何获取当前windows系统的登录用户名
PHP有没有什么方法可以获取当前windows系统的登录用户名?最好是已经验证成功的代码,之前在网上找的都是同一段代码,据说是法国人写的,有的直接复制粘贴,有的还好,给翻译了点,但都不好用,希望有成功过的牛逼人物帮帮忙
------解决方案--------------------
可以通过 php_ldap 扩展
------解决方案--------------------
哈哈,这需求真是够蛋痛的。

按你的需求PHP是获取不到的。你可以通过JS来获取,但是你必须要降低IE的安全设置。

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template