I'm building a portal system for my company and need someway of grabbing the windows username of the person logged on accessing the portal.

Apache & PHP on Windows.

This is VITAL so any help is MUCH appreciated.

I've tried
echo $_SERVER; - returns IP, not username
echo $_SERVER; - returns nothing
echo $_SERVER; - returns nothing
echo $_ENV; - returns nothing

I believe that this sort of thing is purposely blocked for security reasons. If you search hard enough you may find something that works under IE (using ActiveX) but probably not in any other browser. The simple answer is to have your own login facility. If your intent was to only allow people to login from their own machine, then I think that it will be difficult, if not impossible, to control that with PHP and /or Javascript.

YOu can do this with perl...

php is a bit limited when it come to system interactions.

Explore :)

Problem is nobody wants to have yet ANOTHER logon at work!

And was the first login script written in php?