Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to
Did You Find This Entry Useful?

52 of 66 people (79%) answered Yes
Recently 6 of 10 people (60%) answered Yes


How can I get user via PHP after .htaccess login?

Nov 27th, 2008 09:00
healthy man, Sylvain C, dman, Cinley Rodick, Dan Zambonini, Frank Hoechel,

The $REMOTE_USER variable should contain the htaccess user (assuming 
you have complied PHP as a module, not running as CGI).
One can retrieve the value in php code with: