RE: [PHP] htaccess
| From: | Ralph Guzman | Date: | Fri, 04 Aug 2000 21:13:31 +0000 |
| Subject: | RE: [PHP] htaccess | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10192@lists.php.net to get a copy of this message | ||
Daren,
Last night I wrote a program that does this. It uses the class.Htpasswd
found at: http://www.thewebmasters.net/php/
You can download this file which contains some good examples. If you still
find yourself lost. Let me know, and I can provide you with my code.
Ralph
-----Original Message-----
From: Daren Cotter [mailto:darenc@prairie.lakes.com]
Sent: Friday, August 04, 2000 3:54 PM
To: php-general@lists.php.net
Subject: [PHP] htaccess
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net