Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

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

Entry

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:
$_SERVER['REMOTE_USER']
http://www.healthdothealth.com
http://www.healthxhealth.com
http://www.mesotheliomainmesothelioma.com
http://www.healthfirewall.com
http://www.flathealth.com
http://www.healthbodyguard.com