title: How can I use md5 passwords in .htpasswd file?
body: <p>Hi I am trying to set up a <code>.htaccess</code> and a <code>.htpasswd</code> file to see if a user can have access to a particular directory. When a new user registers, their passwords are encrypted with the PHP <code>md5()</code> function and then stored in the database with their other login info. I would like to add a few of their encrypted passwords into my <code>.htpasswd</code> file dynamically so that they can enter into a sub member section. I am having trouble because the <code>.htpasswd</code> file would work with passwords encrypted with the <code>crypt()</code> function but i am not sure how to get it to work with their md5 encrypted passwords.</p>