[Pugged] .htaccess & DB
ciapug@ciapug.org
ciapug@ciapug.org
Thu, 12 Sep 2002 20:12:04 -0000
Tim Perdue <tim@perdue.net> said:
> On Thu, Sep 12, 2002 at 01:50:12PM -0500, Steve Langasek wrote:
> > Well, the only way to change the authentication source for
.htaccess is
> > if you have other Apache authentication modules installed. Otherwise,
> > you can dynamically rewrite .htpasswd, or you can do your
authentication
> > directly in PHP.
>
> Yeah, the source of the database info will be a PHP dynamic site,
which will
> allow access to static html files in another directory. I'm thinking the
> easiest way to go is have the client rename his static files to .php and
> include a simple 1-2 line snippet of auth code. That would be
super-clean.
>
..or, if the ISP will allow it, just set up that directory so .html
files get processed by PHP. You'd still have to include your auth code
at the top of each .html file.
-dc