* $htd = &File_Passwd::factory('Authdigest'); * $htd->setFile('/www/mike/auth/.htdigest'); * $htd->load(); * $htd->addUser('mike', 'myRealm', 'secret'); * $htd->save(); *
* array * + user => array * + realm => crypted_passwd * + realm => crypted_passwd * + user => array * + realm => crypted_passwd *
* realm1 * + user1 => pass * + user2 => pass * + user3 => pass *
* array * + realm1 => array * + user1 => pass * + user2 => pass * + user3 => pass * + realm2 => array * + user3 => pass * + realm3 => array * + user1 => pass * + user2 => pass *