I need some good php scripts to control access to my site. I would like to have a database with the registered users. How can I do this?

Thanks!