title: how to edit .htpasswd using php?
body: <p>i have a protected directory where only user on .htpasswd can access, but sometimes it requires the user to change password or username, edit a specific username password to his username him self</p>
  
  <pre><code>sample users
  kevien : kka
  mike : mike
  </code></pre>
  
  <p>And let say i want to change kevien to XYZ</p>
  
  <p>And same thing goes to password</p>