obtaining the groups of a member through PHP
Posted on 2005-04-13
I am using files htaccess, htpasswd and htgroups to control access to directories and files.
I want to use PHP to get the details of the user that is logged in (to display on page and use in an IF statement).
I am using $_SERVER['REMOTE_USER'] for the user, but I also want to know the groups that the user belongs to.
This way, I could say (for example):
if user_group = 'VIP' then print 'hello VIP'.
Does anyone know how to do this?