Re: Fetching Windows variables into php?

From: Date: Mon, 28 Apr 2003 12:40:43 +0000
Subject: Re: Fetching Windows variables into php?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145521@lists.php.net to get a copy of this message
At 15:19 28-4-03, you wrote:
Hi!! I need to fetch the Windows variable %username% into the php page that i'm making for my work. The reason is that the users shall be directed automatically into the right page for their department. How do i do this?? Check whether you can see the lavue in the environment variables
(try <?PHP echo "<PRE>"; print_r($GLOBALS); ?> ) In my version, my windows login name was not available. if it does not work you could try and see if you can make an inbetween page with a javascript to read that variable. make sure the user gets a warning when it does not work, so you are prepared for security measures that prevent you from reading this.

« previous php.general (#145521) next »