Authentication with .htaccess

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam

    Authentication with .htaccess

    When using authentication on Apache server with .htaccess and .htgroup, is
    it possible to use PHP to provide customised content depending on whether a
    visitor to a website is in a specific group or not?

    If so, does anyone know of a good tutorial?

    Thanks for any help!



    Adam


  • CountScubula

    #2
    Re: Authentication with .htaccess

    "Adam" <Adam@actualite .blue-fire.biz> wrote in message
    news:c1oano$lf6 $1@titan.btinte rnet.com...[color=blue]
    > When using authentication on Apache server with .htaccess and .htgroup, is
    > it possible to use PHP to provide customised content depending on whether[/color]
    a[color=blue]
    > visitor to a website is in a specific group or not?
    >
    > If so, does anyone know of a good tutorial?
    >
    > Thanks for any help!
    >
    > Adam[/color]


    yes, check what group that user is in, then show aproriate content,

    one way is to have some files named after the groups, example:

    friends.php
    buddies.php
    employees.php

    then do an include($groupN ame.".php");



    --
    Mike Bradley
    http://www.gzentools.com -- free online php tools


    Comment

    Working...