On Wed, 9 Jul 2003 19:02:21 +0930, you wrote: >can you use your windows logon as set it as a variable in php?? > >eg I log onto a windows machine using brenton can i use a php script to set >that as a variable, I have seen a similar type function before but i have no >idea how it works, I know windows sets the variable %username% that as a >network administrator i use in shortcuts to point to their home drive..
The name the remote user logged in as on the client machine, or the user the script is running under on the server? It's not really clear. get_current_user() does work under Windows. If you're trying to authenticate a user on an intranet... well, there's LDAP, or NTLM. I've seen NTLM authentication done with PHP under IIS, and there are NTML modules for Apache - http://modntlm.sourceforge.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php