[ciapug] htaccess

Lathrop Preston ciapug@cialug.org
Tue, 23 Dec 2003 15:50:34 -0600


As I said there seems to be some confusion...

to be honest I was surprised when Barry showed me that the PHP_AUTH_USER 
would work... when I first needed the answer to your question (several 
years ago) it had to be REMOTE_USER if you wanted to use .htassess 
authentication...

Laith

Dave J. Hala Jr. wrote:

> What is the differance?  I tried the $_SERVER[PHP_AUTH_USER] and it
> worked.
> 
> On Tue, 2003-12-23 at 15:28, Lathrop Preston wrote:
> 
>>You can use
>>
>>$_SERVER['REMOTE_USER'];
>>
>>instead.
>>
>>there seems to be some confusion as to the functional difference between 
>>the two (if any)
>>
>>
>>
>>Dave J. Hala Jr. wrote:
>>
>>
>>>Thanks.
>>>
>>>On Tue, 2003-12-23 at 11:54, Barry Von Ahsen wrote:
>>>
>>>
>>>>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
>>>>_______________________________________________
>>>>ciapug mailing list
>>>>ciapug@cialug.org
>>>>http://cialug.org/mailman/listinfo/ciapug
>>
>>_______________________________________________
>>ciapug mailing list
>>ciapug@cialug.org
>>http://cialug.org/mailman/listinfo/ciapug