[ciapug] htaccess

Barry Von Ahsen ciapug@cialug.org
Tue, 23 Dec 2003 11:54:41 -0600


Dave J. Hala Jr. wrote:

> I've got a folder that is password protected by an .htaccess file. From
> my php script I need to find out what the username they typed in was.
> 
> Is the username from the apache login stored an as envirnoment variable
> somewhere?
> 
> 
> :) Dave

$_SERVER['PHP_AUTH_USER']

-barry