PDA

View Full Version : can automate the htacessing p/wording


bazz
08-22-2005, 05:59 PM
Heh, I am onto another issue now and as usual I struggle at the beginning, to get my head around it. I would like to know if this is possible, without having shell access.

With one of my forms, I copy and then rename a Dir. I want to password protect it with (presumably) .htaccess. Could this be done as an additional automated task after the dir has been renamed? I am confused about it because I cant imagine how to encrypt the password.

Any tips or pointers would be most welcome.

Bazz

GO ILLINI
09-04-2005, 10:54 PM
google for a password encrypter, they're all over.
it that what you wanted?

bazz
09-05-2005, 06:39 PM
Yup thats useful GO ILLINI.

But what I am working on is a file which copies a Dir from one place to another and then automatically protects it. When I say automatically, I mean that the script adds the necessary data to protect the files within the dir.

Presumably, this should be done by creating (or writing to an existing), .htaccess file and adding the necessary details? The htaccess file would be inside the dir being copied - unless anyone here suggests that I put it elsewhere. (Be polite about it :D )


Bazz