I am seeking a simple and best solution to manage user logins (username & password) in a private network (localhost) web page without setting up MySQL or any such database systems? I am running Apache with PHP. It will be helpful if anybody give a PHP demo.
Share
There are other solutions like that, but I can’t find nicer links right now:
Anyway. These scripts store usernames and passwords into a
.htpasswdfile. This can be used independently from the PHP script..htaccessand.htpasswdis common authentication scheme for Apache webservers. See this tutorial: http://www.javascriptkit.com/howto/htaccess3.shtml or the Apache manual: http://httpd.apache.org/docs/2.0/howto/auth.htmlYou could use the class itself for authentication, but it doesn’t look very current. The login management tool might be useful to you. (But again: there are probably easier ones to find.)