Re: Retrieving Windows 98/NT/XP Login with PHP - Possible?
| From: | Mahmoud | Date: | Tue, 19 Mar 2002 17:20:46 +0000 |
| Subject: | Re: Retrieving Windows 98/NT/XP Login with PHP - Possible? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89163@lists.php.net to get a copy of this message | ||
Hi Shaun,
> I would
> like to be able to tailor the main webpage to whichever person visits it -
> but by using their windows login ID instead of having to get them to enter
a
> username when the page is visited... Is this possible?
Yes it is, if the user is logging on to the machine running apache.
When running under m$ windows, the environment variable USERNAME contains
the username of the user logged on to the machine running Apache/PHP.
Not sure if this is true for '98.
Create a file called, say, info.php which contains the following 3 lines:
<?php
phpinfo();
?>
and have a look at its output.
Regards,
Mahmoud