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
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:[EMAIL PROTECTED]
> Sent: Tuesday, March 21, 2006 10:31 AM
> To: Alex Blundell
> Cc: php-windows@lists.php.net
> Subject: Re:
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