How to setup basic login authentication?
I'd like to have a login page on my site - very basic (no database if possible, but I have MySql if needed). The purpose is to allow a handful of special users to download documents from the site. The documents are uploaded each week to a separate directory for each client, and all the users really need is a directory listing.My service provider offers htaccess, but that does not let me use a login page. Currently, I have a basic html form on a login page that will accept username and password - but where do I go from here?
I can program in PHP and know MySql well enough (though I'd prefer a file-based system), but not sure how to set up authentication. It would be nice if I could get the form to post to htaccess somehow and automatically take each user to his corresponding directory, but I'm not sure this is possible. Any suggestions appreciated! Thanks.