RE: [PHP] .htpasswd login

From: Date: Fri, 28 May 2004 06:07:38 +0000
Subject: RE: [PHP] .htpasswd login
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187091@lists.php.net to get a copy of this message
Your looking for this: $_SERVER['PHP_AUTH_USER'] When running under Apache as module doing HTTP authentication this variable is set to the username provided by the user. See Reserved Variables: http://www.php.net/reserved.variables Jami Moore LightSPARK Digital Designs http://www.lightsparkdigital.com/ >> -----Original Message----- >> From: Daniel Baughman [mailto:danrb@codenet.net] >> Sent: Friday, May 28, 2004 12:56 AM >> To: php-general@lists.php.net >> Subject: [PHP] .htpasswd login >> >> >> I have some sites that I would like to view the user name >> that someone provided to the basic authentication mechanism >> in apache. >> >> Does php/apache provide a means for this? >>

« previous php.general (#187091) next »