Forum Moderators: coopster
But, I can steer you in the right direction. First, learn how to set up a password protected dir and add users manually. Once you understand what the files consist of, it's just a matter of using PHP's filesystem functions to write to the files automatically.
It won't be easy, but should be a good learning experience.
Birdman