php.net |  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: khyiu at hk dot quamnet dot com
New email:
PHP Version: OS:

 

 [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?

<?php
   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";
     exit;
   } else {
     echo "Hello $PHP_AUTH_USER.<P>";
     echo "You entered $PHP_AUTH_PW as your password.<P>";
   }
 ?>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-22 19:56 UTC] sas@php.net
Basic authentication handling was added to PHP 4.0.4.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC