Can anybody tell me the simplest way (or suggest me a tutorial) to save / update / delete usernames and passwords in a .htpasswd file using php?? I am using php5 and Apache 2 in Windows.
I like this:
Create file and add username:
htpasswd -c [filename] [username]
Add username into file or update users password:
htpasswd [filename] [username]
Delete user from file:
htpasswd -D [filename] [username]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With