ADBlock is blocking some content on the site

ADBlock errore

How can I get the authenticated user name under Apache using plain HTTP authentication and PHP?

StackOverflow https://stackoverflow.com/questions/1417


First, let's get the security considerations out of the way. I'm using simple authentication under Apache for a one-off, internal use only, non-internet connected LAN, PHP web app.

How can get I the HTTP authenticated user name in PHP?


I think that you are after this

$username = $_SERVER['PHP_AUTH_USER'];
$password = $_SERVER['PHP_AUTH_PW'];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow