I'm creating a secure environment using PHP and htaccess.
I have managed to create directory structures and htaccess files dynamically based on php forms / sessions but I'm having problems encrypting the password for the htpasswd file for apache.
I have see many examples to create valid encrypted password but most seem to be perl or cgi scripts which I don't want to use!
Can it be done with PHP?