Re: Setting HTACCESS user/pass with php?
| From: | CHAILLAN Nicolas | Date: | Sun, 01 Sep 2002 21:20:06 +0000 |
| Subject: | Re: Setting HTACCESS user/pass with php? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114849@lists.php.net to get a copy of this message | ||
Hi,
Note that it is just a fileaccess, you can use htpasswd to put a password to
the correct file, you can make your own class easily if you know how to
parse a file and write in it. You can use exec() to make an
apache/bin/htpasswd call assuming you're using apache.
--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
nicos@worldakt.com
nicos@php.net
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
"Brian J. Celenza" <bcelenza@mdreamworks.net> a écrit dans le message de
news:
20020901122716.29003.qmail@pb1.pair.com...
> Is it possible to set, delete, or alter htaccess usernames and passwords
> using a php script? If so, where might I find a reference to the code for
it
> or even a walkthrough? I have searched the php functions and I haven't
found
> anything like that.
>
> Thank you in advance.
>
> --
> ---------------------------------------------------------------
> Brian J. Celenza
> Chief Design Architect - Millennium Dreamworks
> bcelenza@mdreamworks.net
> ICQ: 100942424
> AIM: BJCKnight
>
>