I would like to maintain a list of usernames/passwords from PHP function calls.
The username/passwords would be the standard way for end-user (web viewer) authentication access for a protected directory for http web page access.
Thus from my own PHP admin code, I would add, delete, display (usernames only) the contents of the user/pass files as pointed to from the .htaccess file.
1. can someone point me to PHP functions that perform these operations, i've not been able to locate any thus far.
2. are there any issues regarding security because my PHP code will need RW access to the username file? (I can place it outside the scope of the pbulic_html/ web directory area)
Note: I'd rather keep it simple and just use Linux file system authentication and not try to use session control and do the authentication "within PHP".
thanks
Start Free Trial