RE: [PHP] http username
| From: | rich | Date: | Sun, 02 May 2004 14:24:57 +0000 |
| Subject: | RE: [PHP] http username | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185139@lists.php.net to get a copy of this message | ||
> 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