Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2006
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts

    htaccess passwords

    Anyone know a php form I can use to manage .htaccess user names?
    eg

    UserNamer :______________
    Old Password:_______________
    New Password:_______________
    New Password:_______________

    Ok Cancel

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,522
    Thanks
    8
    Thanked 1,091 Times in 1,082 Posts
    This is a tricky issue, because having a PHP script that can
    alter .htaccess creates a whole new set of security issues.

    Not knowing exactly what you're goal is, I can only suggest that
    you look into a MySQL type of membership script and use sessions
    instead of .htaccess

  • #3
    Regular Coder
    Join Date
    Nov 2006
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just have a little intranet setup wherby people can access different reports and information, based on there login htaccess that allows them access to these different web directories.

    Or is it possible to synchronize htaccess passwords with the normal linux system user database?
    I guess this is turning more into an htaccess post than a PHP one if you can reset passwords.

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,522
    Thanks
    8
    Thanked 1,091 Times in 1,082 Posts
    You might find something here:

    http://www.google.com/search?hl=en&s...or&btnG=Search

    There are some examples of using PHP to alter .htaccess
    Last edited by mlseim; 07-18-2007 at 04:33 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •