Re: [PHP-WIN] htpasswd question

2003-01-29 Thread metac0m
create an .htpasswd file like this: C:\Apache\bin>htpasswd -c c:\.htpasswd USERNAME Automatically using MD5 format. New password: ** Re-type new password: ** Adding password for user USERNAME If look in the .htpasswd you see that the pass is different thatn if you use crypt or md5 to e

Re: [PHP-WIN] htpasswd question

2003-01-28 Thread Dash McElroy
I would try something like this instead: $params = escapeshellarg($params); $output = system(c:\path\to\htpasswd $params); //check for output errors or what not There very well could be a better solution (especially since I have not tried the above code...). I remember seeing somewhere that the

[PHP-WIN] htpasswd question

2003-01-28 Thread Dominik Wittenbeck
I am currently trying to create a .htpasswd file for apache using PHP and the crypt() on Win2k. I can generate the file alright but it does not work. I have looked into some classes as well and all use the crypt() function. The reason for this not working is probably the algorithm used because the

[PHP-WIN] htpasswd

2001-12-16 Thread jtjohnston
I'm sure question has been asked. How can I do this? How can I edit a htpasswd file? The pathes are right, no fork errors. But file does not change. I know ... it's a dangerous script, but what do you want, I need it! Post & replies are helpful :) Thanks, John ---snip-