Handle everything thru PHP/Mysql, but write a little function
that will read thru the Mysql database and write the .htaccess 
files to disk as needed.

Of course, you'll have to set proper permissions on the files.

That's what i'm doing now for a project i'm working on...
all user data is in the database, and eveyrtime a change
is made to the DB, the .htpasswd file is written to disk
to keep it constantly updated.  

---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515

> -----Original Message-----
> From: Matt Babineau [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 31, 2002 10:40 AM
> To: 'Php-Win (E-mail)'
> Subject: [PHP-WIN] htaccess and PHP in general
> 
> 
> I have a client that wants to use htaccess for verification and
> authentication into certain areas of a web site. I suggested to use a
> combination of PHP/MySQL to get the jobs done. it makes my life easier
> and reduces low-level administration tasks on his part 
> letting me bundle
> all the administrative tasks into one neat PHP application. 
> Rather then
> administer qmail and htaccess access via text files or however they do
> it. Does anyone have any good insight on what they think 
> would be best?
> I don't know alot about htaccess, so its a little foreign to me. But a
> PHP/MySQL authentication system seems as secure and far far 
> more salable
> to both my abilities and his needs. Any thoughts?
>  
> Matt Babineau
> Freelance Internet Developer
> -----------------------------------------
> e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> p: 603.943.4237
> w:  <http://www.criticalcode.com/> http://www.criticalcode.com
> PO BOX 601
> Manchester, NH 03105
>  
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to