Advertisement

07.16.2008 at 08:29AM PDT, ID: 23570060
[x]
Attachment Details

PHP functions for Unix file system .htaccess user/password files

Asked by willsherwood in PHP Scripting Language, Linux Programming

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
[+][-]07.16.2008 at 09:05AM PDT, ID: 22017308

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, Linux Programming
Sign Up Now!
Solution Provided By: hernst42
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628