I am writing a php script that will send a password once a month to a list of users.
I wanted to use the same php script to send the email and to change the .htaccess file.
is there a function in php to encrypt a password for .htaccess files ?
Thanks
working with .htaccess files
Moderator: General Moderators
I think you can use fopen() to open up the .htaccess file, find the password line and edit it.
http://php.net/fopen
-Nay
http://php.net/fopen
-Nay
take a look at http://www.devbox.net/articles/viewarticle.php?aid=7 for an example php script that works with .htaccess and .htpasswd files
btw, .htaccess/passwd files use standard DES encryption
btw, .htaccess/passwd files use standard DES encryption