Development .htaccess authentication and php

Discussion in 'Software' started by ellism, 23 Sep 2004.

  1. ellism

    ellism What's a Dremel?

    Joined:
    10 Sep 2003
    Posts:
    348
    Likes Received:
    0
    OK i have used Cpanel to set up user authentication on a folder
    the .htaccess goes
    PHP:

    <LIMIT GET POST>require valid-user</LIMIT>

    AuthType Basic

    AuthName 
    "Restricted Area"

    AuthUserFile "*******"

    require valid-user

    Now i can't seem to access the password from php, i know if i send the login headers myself i can use $PHP_AUTH_USER to acccess the user name, but it won't work here. Any ideas.
     

Share This Page