Hi, my website is www.gymdrills.com (im only mentioning url here because i need help finding the path).

I need to find the path for a AuthUserFile file i will use for a password protected directory (lets call it www.gymdrills.com/passwordplace for fun).

AuthType Basic
AuthName "ENTER LOGIN INFORMATION TO ACCESS GYM DRILLS VIDEOS"
AuthUserFile "/home/no idea?????"
require valid-user
    echo $_SERVER['DOCUMENT_ROOT'];

    will give you the document root of your web site.

    It will probably be something like /home/gymdrill/public_html

    So your home directory is /home/gymdrill which is where the file probably is.

      so what you're saying is that i just create a file called "test.php" or something and put this in the file? then go to www.mydomain.com/test.php and it will tell me the path?

      echo $_SERVER['DOCUMENT_ROOT'];

        Write a Reply...