Jump to content

Recommended Posts

Posted

Hi Guys

i am wondering if any of you know how to show the username in php of a logged on computer user

this is for a intranet system i am working on so students/staff dont have to login to the system when they are in the school and automaticaly brings there infomation up depending what there username is

 

jtoland

Posted

if ($_SERVER["AUTH_USER"] != ""){

$temp = explode("\\",$_SERVER["AUTH_USER"]);

echo $temp[1];

}

 

If your running php on a windows box, this will work as long as you have intergrated authentication enabled on the webfolder.

Posted

thanks

but i am running the server on linux and its not located in the school i was wondering if there was a way to remotely grab the infomation when a user visits the site

jtoland

  • 1 month later...
Posted
thanks

but i am running the server on linux and its not located in the school i was wondering if there was a way to remotely grab the infomation when a user visits the site

jtoland

 

Someone has built for Apache a NTLM module which can grab the username, Google for Apache NTLM

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...