|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6965 cannot authenticate
Submitted: 2000-09-30 22:54 UTC Modified: 2000-12-22 19:56 UTC
From: khyiu at hk dot quamnet dot com Assigned:
Status: Closed Package: Other web server
PHP Version: 4.0.2 OS: Solaris 2.7 + thttpd2.20
Private report: No CVE-ID: None
 [2000-09-30 22:54 UTC] khyiu at hk dot quamnet dot com
thttpd with php4.02 using the following script always authenicate fail, any idea?

   if(!isset($PHP_AUTH_USER)) {
     Header("WWW-Authenticate: Basic realm=\"My Realm\"");
     Header("HTTP/1.0 401 Unauthorized");
     echo "Text to send if user hits Cancel button\n";
   } else {
     echo "Hello $PHP_AUTH_USER.<P>";
     echo "You entered $PHP_AUTH_PW as your password.<P>";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-22 19:56 UTC]
Basic authentication handling was added to PHP 4.0.4.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 13:01:28 2024 UTC