Guest_imported
New member
- Jan 1, 1970
- 0
I am in the process of implementing password protection for some areas of my website using .htaccess and .htpasswd files. I have a member database (saved as a text file) with members listed in the following format:<br><br>-------------------<br>membership number;<br>[space]<br>lastname, firstname<br>--------------------<br>membership number;<br>[space] <br>lastname, firstname<br>--------------------<br><br>I would like to use a Perl script to create the .htpasswd file, because the htpasswd program on my web server is disabled. I am using the crypt() function to encrypt the passwords, but I don't know what to write to make to script check to database and select the lastname as the username and the membership number as the password. Can you help me?<br>