Click to See Complete Forum and Search --> : windows login


ava
10-27-2005, 03:30 PM
Hi, I've been trying to find a PHP-function that finds the windows username.
Is there such a function in PHP and if not, is it in Javascript or somewhere else?

Sheldon
10-27-2005, 03:57 PM
So you want to find the windows login information on the end users computer? for what reason? It wouldnt be a server side function i wouldnt think.

ShrineDesigns
10-28-2005, 12:07 AM
if you want to know the usename from the server (win 2k)<?php echo (isset($_ENV["USERNAME"])) ? $_ENV["USERNAME"] : 'unknown'; ?>