in reply to .htaccess and $ENV{
# LOCATION OF PASSWORD FILE $PASSFILE="/usr/home/web_directory/protected_dir/.htpasswd"; open(WRT,">$PASSFILE"); foreach $id (keys %user_hash){ $pass2 = crypt($user_hash{$id}, "AB"); print WRT "$id:$pass2\n"; } close(WRT);
You can change 'AB' in the crypt statement to any two letter combination!
oakbox
"If what I'm saying doesn't make sense, that's because sense cannot be made, it's something that must be sensed"-J.S. Hall
|
|---|