I am trying to use the following script to perform authentication. The environment is XP, Apache 2.0 and PHP4, with PHP4 running as a module. I have created the .htpasswd file. When the script runs, I get the dialogue box but after entering the UID and PWD all processing apparently stops. I can only break execution by hitting the OK button several times with gives me the Authorization required msg. Any help in pointing me in the right direction would be appreciated. Thanks.
<?php
$auth = false; // Assume user is not authenticated
if (isset( $PHP_AUTH_USER ) && isset($PHP_AUTH_PW)) {
// Read the entire file into the variable $file_contents
Bookmarks