[PHP] http username

2004-05-02 Thread Harry.de
If a user is logged in via http (authentification e.g. with  .htaccess and
.htpasswd file), how can i get the username of the current logged in user?

Thanx
Harry

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] http username

2004-05-02 Thread Matt
 If a user is logged in via http (authentification e.g. with  .htaccess and
 .htpasswd file), how can i get the username of the current logged in user?

Read the manual at: http://www.php.net/manual/en/features.http-auth.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] http username

2004-05-02 Thread rich
 If a user is logged in via http (authentification e.g. with  .htaccess and
 .htpasswd file), how can i get the username of the current logged in user?

 Thanx
 Harry

try $_SERVER['PHP_AUTH_USER']

rich

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php