|
-
Sep 17th, 2002, 10:34 AM
#1
Thread Starter
Addicted Member
PHP and IIS : What is the username provided ?
Hi there,
I'm fairly new to this PHP-thing while having done loads of ASP. I'm currently creating an intranet website using PHP and I don't know how to retrieve the username provided by the IIS authentication ?
$_Server["PHP_AUTH_USER"] doesn't seem to work and I need this information to retrieve information about the people who logged on.
Thanks in advance,
-
Sep 17th, 2002, 02:40 PM
#2
Frenzied Member
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Sep 23rd, 2002, 08:07 AM
#3
Thread Starter
Addicted Member
$UserName = $_SERVER['PHP_AUTH_USER'];
But remember this is running under IIS...
-
Sep 23rd, 2002, 01:24 PM
#4
Frenzied Member
The login name with be stored in $AUTH_USER or $_SERVER[AUTH_USER] with $AUTH_TYPE or $_SERVER[AUTH_TYPE] containing the authentication type e.g. NTLM
NTLM authentication is possible with PHP assuming A) you run it on a NT/2000/.NET box, B) IIS is used.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|