User-authentication in PHP (contd.) Consider the following program which is here: http://www.cs.ucc.ie/j.bowen/cs4408/resources/securePage.php <?php if ( ($_SERVER[ PHP_AUTH_USER ]== pedro ) && ($_SERVER[ PHP_AUTH_PW ]== qwerty ) ) { echo Welcome ; } else {header( HTTP/1.0 401 Unauthorized ); header( WWW-Authenticate: Basic realm=BankAccounts ); echo You must identify yourself ; echo Please provide a correct user+password ; } ?>
{}