Re: extracting htaccess info

From: Date: Mon, 30 Oct 2000 19:40:17 +0000
Subject: Re: extracting htaccess info
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22736@lists.php.net to get a copy of this message
on 10/30/00 12:35 PM, Lars Holm Nielsen (lars@hankat.dk) wrote: > Joe Stump wrote: >> $PHP_AUTH_USER and $PHP_AUTH_PW (they are set by PHP AFAIK) > > He can only use these, if he uses the HTTP authentication feature in > PHP. I.e that it does not contain the username nor password for a user > authenticated with htaccess file. Not according to a test I just ran. If it is a module, it seems to grab the .htaccess $PHP_AUTH_USER and $PHP_AUTH_PW. I added the .htaccess file to a directory to restrict access and then tested by placing a PHP file in that directory that echoes $PHP_AUTH_USER and $PHP_AUTH_PW. They showed up. Paul ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Paul Burney Webmaster and Internet Developer Educational Technology Unit Graduate School of Education and Information Studies University of California, Los Angeles (310) 825-8365 <webmaster@gseis.ucla.edu> <http://www.gseis.ucla.edu/> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

« previous php.general (#22736) next »