Hello all,
It's a pb related to .htaccess, Apache
and PHP;
Usually, people asked how to get the
value typed in the login/pwd prompt
by the Apache server using .htaccess
for that.
But I have exactly the opposite problem :
Suppose, I have a directory protected by
.htaccess and I want members to type
their own login/pwd to get access, but
I don't want to put the login/pwd of
every member in the .htaccess/.htpasswd
files (it would be too slow)
So I set up the .htaccess with a single
login/pwd, let's say "test/test".
Now people are logging through a normal
HTML form, typing "joe/foobar", and I want
to redirect them to the protected directory
So I need to "inject" hard-coded value
of "test/test" in $PHP_AUTH_USER and
$PHP_AUTH_PW because I don't want my
members to be prompted by Apache with
the classical little popup window you get
when using .htaccess file
Is that possible ? How ?