Re: Authentication with .htaccess

From: CountScubula (me_at_scantek.hotmail.com)
Date: 02/27/04


Date: Fri, 27 Feb 2004 21:13:50 GMT


"Adam" <Adam@actualite.blue-fire.biz> wrote in message
news:c1oano$lf6$1@titan.btinternet.com...
> 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

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($groupName.".php");

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


Relevant Pages

  • Re: [Q] Development Best Practices
    ... Main thing is that it seperated php code from html ... Adam wrote: ... I was going to generate all the HTML from a PHP ... > script, but that turned into a mess. ...
    (php.general)
  • Re: [PHP] PHP within Frames
    ... I'm running Windows XP Professional with PHP and MySQL and IE6 ... Frames environment. ... "Adam" wrote in message ... > This is really an browser interpretation of HTML issue than a straight ...
    (php.general)
  • Re: WHats wrong with this code
    ... adam wrote: ... is the same as writing ... PHP is looking for previous declarations/definitions of the variable ... Remove the rage from my email to reply. ...
    (comp.lang.php)
  • PHP.net-like reference for C
    ... Does anyone know if there is a website with anything nearly as ... comprehensive as the PHP.net function and documentation reference for C ... about PHP in the C NG. ... Adam ...
    (alt.php)
  • Re: PHP.net-like reference for C
    ... > Does anyone know if there is a website with anything nearly as ... > comprehensive as the PHP.net function and documentation reference for C ... > about PHP in the C NG. ...
    (alt.php)