View Single Post
Old 07-02-2007, 10:48 AM  
J.P.
Confirmed User
 
Join Date: Jun 2004
Posts: 689
grep -Ev "^desired_username:" .htpasswd > .htpasswd.tmp;mv -f .htpasswd.tmp .htpasswd

you can use PHP's exec() function to execute this shell command... you will have to use full paths of course
__________________
Webmasters! Looking for new affiliate programs to promote?
Affiliate Program Search <-- Search for programs with FHGs, RSS feed, specific niche sponsors, ...
J.P. is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote