Thank you for your help with the .htaccess and Perl question I had. What I ended up doing was downloading a script that allowed users to input their own usernames and passwords.
I have another question. The server requires a .htgroup file in order to work, and the script I downloaded does not put usernames into the .htgroup file. I wrote some code to do this, but unfortunately it inserts a space at the end of the .htgroup file and will not allow users to log in unless I delete that space. I tried just appending to the end of the file, but it appends on a new line, and of course I need it to append to the end of the existing line in .htgroup.
Could someone please look at the code I have and let me know if they have any suggestions? Thank you very much!
read the file .htgroup in as a Perl hash
open(group, "<.htgroup") or die "Can't open group file: $!");@groupusers=<
, remove the spaces between the usernames and store in a new hash
the new username to the end of the hash and increase the length by one
the .htgroup file and write "readers:" to it
open(groupwrite, ">.htgroup") or die "Can't write to group file: $!";
print groupwrite $groupsplit;#For
each element, print a space then the username in the .htgroup file#Also
increment the counter
print groupwrite " ", $groupsplit[$gcounter];