htaccess
| From: | Daren Cotter | Date: | Fri, 04 Aug 2000 22:54:22 +0000 |
| Subject: | htaccess | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-10190@lists.php.net to get a copy of this message | ||
Hi everyone. I've got a client that has a password protected directory using
.htaccess. The problem is, this client has 250 users, and wants to have
complete control over adding/deleting/modifying users. I have attempted to
install a few such web-based utilities that claim to do just this, to no
avail. I attempted to write my own CGI script with the following code:
--------- CODE -----------
#!/usr/bin/perl
use CGI qw(param);
$username = param("username");
$password = param("password");
system("/usr/sbin/htpasswd -b
/home/sites/www.mnvac.org/web/employees2/.htpasswd $username $password");
---------- CODE ------------
to no avail. Does anyone know any way to accomplish this using a PHP
function?
Thanks!
Daren Cotter
[ Web Development ] - [ Database Administration ]
Prairie Lakes Internet
(507) 344-1318
darenc@prairie.lakes.com
http://web.lakes.com