Page 1 of 1

any one no how to delete a password from a .htpasswd file

Posted: Sat Dec 27, 2003 8:17 am
by lazerbri
hi Im new here hello

Im writing a php programe that puts a username and password to a .htpasswd file, that was fairly easy then come the next bit how to delete it...

would anyone no how to delete the password and username from a .htpasswd file?

sorry if my spelling is not good!
thanks
Brian

Posted: Sat Dec 27, 2003 8:22 am
by Weirdan
read that file in array, unset unwanted line and then rewrite the file.