RE: [PHP-WIN] Getting windows username into php/mysql

2006-03-22 Thread Matt Murphy
Hmm... I'm guessing you could take that variable, do an explode on the \ and add the @domain.ext, that is if you know the extension. That should work for my purposes at least. Thanks, Matt > The $_SERVER["REMOTE_USER"] method works ok, but returns the > old Win 2000 style DOMAIN\username, r

Re: [PHP-WIN] Getting windows username into php/mysql

2006-03-22 Thread Aaron Kenney
ith Apache/Firefox, so it's not > platform-exclusive. E-mail me directly if you're having issues with that, > as it doesn't really belong on this list... > > > -Original Message- > From: Matt Murphy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 21, 2006 1:

RE: [PHP-WIN] Getting windows username into php/mysql

2006-03-22 Thread Grinberg, Kevin
-Original Message- From: Matt Murphy [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 1:09 PM To: php-windows@lists.php.net Subject: RE: [PHP-WIN] Getting windows username into php/mysql That seems to grab the user that apache is running under, any idea about the client's wind

Re: [PHP-WIN] Getting windows username into php/mysql

2006-03-21 Thread Aaron Kenney
I've had no luck with $_ENV['username'] or getenv('username'). Here's a page that I put together through suggestions using an Active X object. Name the page test.php. It requires IE so beware: "; echo $username; } else { echo "go"; echo " testing username script

RE: [PHP-WIN] Getting windows username into php/mysql

2006-03-21 Thread Matt Murphy
hp.net > Subject: Re: [PHP-WIN] Getting windows username into php/mysql > > I tried it using getenv('username') and it worked ok > http://php.net/manual/en/function.getenv.php > > Alex Blundell wrote: > > HI, I have been searching the internet for days trying

Re: [PHP-WIN] Getting windows username into php/mysql

2006-03-21 Thread David Collard
I tried it using getenv('username') and it worked ok http://php.net/manual/en/function.getenv.php Alex Blundell wrote: HI, I have been searching the internet for days trying to find a way of getting the windows username (%username%) of the current logged on user and submitting it, along side

[PHP-WIN] Getting windows username into php/mysql

2006-03-20 Thread Alex Blundell
HI, I have been searching the internet for days trying to find a way of getting the windows username (%username%) of the current logged on user and submitting it, along side some other information (entered into the form by the user), to a MysQl database. This will enable me to know who has subm