Answer by pilsetnieks for php can not authorize
The code works fine for me, so it's probably a server configuration issue, perhaps this one - PHP_AUTH_USER not set?
View Articlephp can not authorize
Trying to implement a very simple protected area. I have two php files:The first: secure.php<?php $username = 'user'; $password = 'password'; if (!isset($_SERVER['PHP_AUTH_USER']) ||...
View Article