获取用户名 [英] Getting username

查看:95
本文介绍了获取用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目录通过要求用户名和

密码来使用.htaccess授权。我想将所有交易的简单日志记录到数据库中,这将为所有编辑/添加/删除

操作的人提供什么时间。为此,我想获得

..htaccess登录中提供的用户名。我已经尝试了$ PHP_AUTH_USER和$ PHP_REMOTE_USER但

这两个变量都是空白的。


如何获取用户名?

My directory uses .htaccess authorization by requiring a username and
password. I want to keep a simple log of all transactions to a DB which
will provide the who-what-when-where for all edit/add/delete
operations. To this end, I want to obtain the username provided in the
..htaccess login. I''ve tried $PHP_AUTH_USER and $PHP_REMOTE_USER but
both variables are blank.

How can I get the username?

推荐答案

PHP_AUTH_USER和
PHP_AUTH_USER and


PHP_REMOTE_USER但

这两个变量都是空白的。


如何获取用户名?

PHP_REMOTE_USER but
both variables are blank.

How can I get the username?


Bob写道:
Bob wrote:

我的目录使用.htaccess授权,要求用户名和

密码。我希望将所有交易的简单日志保存到数据库

,这将为所有编辑/添加/删除

操作提供何时何地。为此,我想获得

.htaccess登录中提供的用户名。我试过了
My directory uses .htaccess authorization by requiring a username and
password. I want to keep a simple log of all transactions to a DB
which will provide the who-what-when-where for all edit/add/delete
operations. To this end, I want to obtain the username provided in the
.htaccess login. I''ve tried


这篇关于获取用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆