Looks like you could add something like this to your .htaccess: SetEnv dir_group "group_name" then you should have $_SERVER[ 'dir_group' ] available to you in php.I'm no security expert and I had to change AllowOverride to "All" or probably "SetEnv" in my directory block and this may be a security concerns depending on your environment.
//Brad On Sep 15, 2008, at 9:30 AM, Lentes, Bernd wrote:
hello,we created a website with content which should be presented differently, according to group-membership.We did this with AuthGroupFile in a .htaccess.For static html-pages it worked fine. We want now to generate dynamic content.In php it's possible to find the username with getenv("REMOTE_USER"). Is there a possibility to find out the group with something similar ? Bernd -- Bernd Lentes staatl. geprüfter Techniker Systemadministration Institut für Entwicklungsgenetik HelmholtzZentrum münchen Raum 35/1008f Ingolstädter Landstraße 1 85764 München-Neuherberg mailto:bernd.lentes@xxxxxxxxxxxxxxxxxxxxx phoneto:089/3187-1241 faxto:089/3187-3826 http://www.helmholtz-muenchen.de/idg/ ---------------------------------------------------------------------The official User-To-User support forum of the Apache HTTP Server Project.See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx