I'm trying to figure out a clever way for a script to add users. Right now I am using .htaccess and .htpasswd to allow users to a directory but I would like to make my script automatically add them through an admin form. Can I do this by just issuing the .htpasswd command in the script or is there a more suited way of dealing with this.
Thanks!