perficut Posted August 26, 2007 Share Posted August 26, 2007 Im looking for a way to update my htpasswd file. I want to take $FirstName and use it as a the login ID, and take $LastName (encrpyt it) then update the htpasswd file with both. My user fills out a registration form. The form data FirstName, LastName is passed to the php file which will update the htpasswd file using the FirstName as the ID and the LastName as the password. Not sure if this makes sense. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/66766-helpupdate-htpasswd-on-the-fly/ Share on other sites More sharing options...
trq Posted August 26, 2007 Share Posted August 26, 2007 Where are you stuck exactly? Have you looked at the fopen() and fwrite() functions? Quote Link to comment https://forums.phpfreaks.com/topic/66766-helpupdate-htpasswd-on-the-fly/#findComment-334568 Share on other sites More sharing options...
perficut Posted August 26, 2007 Author Share Posted August 26, 2007 Im not sure very knowledgeable in the syntax. I can prety much figure out what the code is doing by reading it, I just dont have the knowledge of the correct syntax to write the necessary code to do what I need it to do. Quote Link to comment https://forums.phpfreaks.com/topic/66766-helpupdate-htpasswd-on-the-fly/#findComment-334628 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.