php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #2305 'HTTP authentication with PHP' dosn't work
Submitted: 1999-09-15 13:27 UTC Modified: 2000-07-03 19:17 UTC
From: schmidt4 at rz dot uni-greifswald dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0.12 OS: WinNT4; SP5; Apache 1.3.9
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: schmidt4 at rz dot uni-greifswald dot de
New email:
PHP Version: OS:

 

 [1999-09-15 13:27 UTC] schmidt4 at rz dot uni-greifswald dot de
Hi all,

I can't get the mentioned example work on my system... every time I start the .phtml
I get an 'error 500 - internal server error' from my Apache server. Even the shortest
program:

<?
header("WWW-Authenticate: Basic realm=\"Test\"");
header("HTTP/1.1 401 Authorization Required");
?>

results in an 'error 500'. There are no newlines or spaces in the file, only the
4 lines from above.

Thanks,
Jan Schmidt

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-03 19:17 UTC] rasmus at cvs dot php dot net
As documented, HTTP Auth from PHP does not work with the CGI version.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 26 16:01:30 2024 UTC