Is there a programmatic way to build htpasswd files, without depending on OS specific functions (i.e. exec(), passthru())?
exec()
passthru()