Get groups of authenticated people in php

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I have a web site protected by htpasswd & htgroup. In a PHP page, I
can get the logged user using REMOTE_USER properties, but could not
find how to get the groups to which it belongs. Any clue ?


Re: Get groups of authenticated people in php

In article

Quoted text here. Click to load it

What are groups?  It's purely a construct in Apache to allow for a bunch
of users in a single file without having to maintain each user in the
.htaccess file.  The $_SERVER["REMOTE_USER"] property can be spoofed, so
it's not 100% reliable.  If someone is logging into your site, you're
better off using a MySQL database to maintain the users and their
passwords.  Most content-management systems, bulletin boards, and Forums
do this.

Rethink your approach.

DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]

Site Timeline