#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    2
    Rep Power
    0
    Hello, I setup a user database that interacts with php. I can have php check usernames and passwords but I want to know if I can extend this past php files to the dir listings? So that I don't have to hardcode a user and password in the .htaccess and .htpasswd files. I would like .htaccess to retrieve the password from mysql not .htpasswd
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    18
    There is mod_auth_mysql that you can add to apache, but I haven't used it.

    If you don't want to use .htaccess why not just use a form and directly auth in your php script?
  4. #3
  5. No Profile Picture
    RyanP
    Guest
    Devshed Newbie (0 - 499 posts)
    if you just use a form and a script to authenticate a user for a page, how would you protect entire directories (and sub-directories) like htaccess does?
  6. #4
  7. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    18
    sessions

IMN logo majestic logo threadwatch logo seochat tools logo