RE: [PHP-WIN] Getting windows username into php/mysql
| From: | Matt Murphy | Date: | Tue, 21 Mar 2006 18:08:39 +0000 |
| Subject: | RE: [PHP-WIN] Getting windows username into php/mysql | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-26777@lists.php.net to get a copy of this message | ||
That seems to grab the user that apache is running under, any idea about
the client's windows username?
Matt
> -----Original Message-----
> From: David Collard [mailto:meizawotmeiz@gmail.com]
> Sent: Tuesday, March 21, 2006 10:31 AM
> To: Alex Blundell
> Cc: php-windows@lists.php.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 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 submitted the form on my intranet.
> >
> > I have quite a bit of php/mysql knowledge, and i know the windows
> > variable is %username% (easy i know) i just dont know how
> to get the
> > variable into an array so i can post it to mysql db
> >
> >
> > Any help would be great as im all out of place to look....
> >
> > Thanks in advance
> >
> >
> >
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
>