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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
lazerbri
Forum Newbie
Posts: 15
Joined: Sat Dec 27, 2003 8:17 am

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

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

read that file in array, unset unwanted line and then rewrite the file.
Post Reply