Re: authorizaton
| From: | php3 at developersdesk dot com | Date: | Thu, 17 Aug 2000 23:17:53 +0000 |
| Subject: | Re: authorizaton | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-12368@lists.php.net to get a copy of this message | ||
Addressed to: Lajtos =?iso-8859-1?Q?M=E1t=E9?= <lajtos.mate@komar.hu>
php-general@lists.php.net
** Reply to note from Lajtos =?iso-8859-1?Q?M=E1t=E9?= <lajtos.mate@komar.hu> Thu, 17 Aug 2000
16:33:03 -0700
>
> Hi All,
>
> I've got some probelm with getting username from Apache auth. .
>
> I've got a .htaccess file with AuthTYpe Basic, AuthUserfile.. ,
> require valid-user, etc. Everytime when anyone wants to get the page a
> window pops up for username and password. It works fine.
>
> My question is if there's any way to get the username one writes into
> Apache poped up window? Can I somehow get it from Apache? (The PHP
> manual has an example using HTTP headers. It uses two variables
>
> ($PHP_AUTH_USER, $PHP_AUTH_PW). How do these two variables are set?
>
> Thanks for any help in advance,
Try $REMOTE_USER
Also, whenever you have a question about what variables you have
available add
phpinfo();
to your script. This will show you everything that is available.
Rick Widmer
Internet Marketing Specialists
www.developersdesk.com