Re: htaccess
| From: | Miles Thompson | Date: | Fri, 04 Aug 2000 23:22:32 +0000 |
| Subject: | Re: htaccess | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10210@lists.php.net to get a copy of this message | ||
Daren,
There's no function, but it's commonly done.
Go to http://www.zend.com, and amongst the articles you will find
one on user
authorization, done I believe 3 ways. .htaccess, by database (and I can't
remember the third).
At http://www.weberdev.com you will also find at least one
article on PHP and
authentication.
Enough to get you started?
-Miles Thompson
Daren Cotter wrote:
> 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