Stripping Domain from username
| From: | Blaine Dinsmore | Date: | Tue, 11 Jun 2002 00:20:41 +0000 |
| Subject: | Stripping Domain from username | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14170@lists.php.net to get a copy of this message | ||
I'm authenticating users using $REMOTE_USER and was wondering if
basename($SERVER_[REMOTE_USER]); was a good method to strip out the domain ex: MYDOMAIN\\username.
I know the function is intended for cutting out directories but it seems to work. If anyone else has
an alternate method please let me know.
Thanks,
Blaine