I have an online PHP/MySQL system which is password protected with .htaccess
What I want to do is set up a page so that users can change their password online. I've got it all worked out how to do it, the only problem is running the system command. What I want to do is this:
system("htpasswd -b /path/to/passwdfile username newpassword");
Doesn't work. Neither does exec() or passthru(). Now the really weird thing is none of them even pass me back an error message. Any other unix command will work and pass thru any output generated. I've tried putting the full path to htpasswd, I've run the command from the commandline as "nobody" (my httpd id) and that works fine, so I don't think the problem is permissions or path related.
AARGH! I can't be the first person to want to do something like this. Any ideas? Anyone?