Hello to all,
I have protected a directory with the help of .htaccess &
htpasswd.
I also read that I can get the login value in a php
variable.
Like this:
$user = $_SERVER['PHP_AUTH_USER'];
echo "User : ";
echo $user;
I did it, but nothing is displayed after the echo User!
I don't really know if it's the right way to get this
value.
Could somebody give me some help.
Regards
Otto
I have protected a directory with the help of .htaccess &
htpasswd.
I also read that I can get the login value in a php
variable.
Like this:
$user = $_SERVER['PHP_AUTH_USER'];
echo "User : ";
echo $user;
I did it, but nothing is displayed after the echo User!
I don't really know if it's the right way to get this
value.
Could somebody give me some help.
Regards
Otto
Comment